Skip to content

Commit dd16cfe

Browse files
chore(deps): migrate from eslint-plugin-markdown to @eslint/markdown (#2500)
## PR Checklist - [x] Addresses an existing open issue: fixes #2499 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/TypeStat/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/TypeStat/blob/main/.github/CONTRIBUTING.md) were taken ## Overview The other package has been deprecated for some time. Take the recommended package into use. 🐙
1 parent b144e73 commit dd16cfe

3 files changed

Lines changed: 339 additions & 119 deletions

File tree

eslint.config.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ If you're interested in learning more, see the 'getting started' docs on:
1010

1111
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs";
1212
import eslint from "@eslint/js";
13+
import markdown from "@eslint/markdown";
1314
import vitest from "@vitest/eslint-plugin";
1415
import jsdoc from "eslint-plugin-jsdoc";
1516
import jsonc from "eslint-plugin-jsonc";
16-
import markdown from "eslint-plugin-markdown";
1717
import n from "eslint-plugin-n";
1818
import packageJson from "eslint-plugin-package-json/configs/recommended";
1919
import perfectionist from "eslint-plugin-perfectionist";
@@ -40,7 +40,6 @@ export default defineConfig(
4040
},
4141
eslint.configs.recommended,
4242
...jsonc.configs["flat/recommended-with-json"],
43-
...markdown.configs.recommended,
4443
...yml.configs["flat/recommended"],
4544
...yml.configs["flat/prettier"],
4645
comments.recommended,
@@ -106,12 +105,20 @@ export default defineConfig(
106105
},
107106
},
108107
},
108+
{
109+
extends: ["markdown/processor"],
110+
files: ["**/*.md"],
111+
plugins: {
112+
markdown,
113+
},
114+
},
109115
{
110116
extends: [tseslint.configs.disableTypeChecked],
111117
files: ["**/*.md/*.*s"],
112118
rules: {
113119
"@typescript-eslint/no-unused-vars": "off",
114120
"n/no-missing-import": "off",
121+
"no-undef": "off",
115122
},
116123
},
117124
{

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"devDependencies": {
5252
"@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
5353
"@eslint/js": "10.0.1",
54+
"@eslint/markdown": "8.0.1",
5455
"@release-it/conventional-changelog": "11.0.0",
55-
"@types/eslint-plugin-markdown": "2.0.2",
5656
"@types/node": "22.19.17",
5757
"@types/prop-types": "15.7.15",
5858
"@types/react": "19.2.14",
@@ -63,7 +63,6 @@
6363
"eslint": "10.2.1",
6464
"eslint-plugin-jsdoc": "62.9.0",
6565
"eslint-plugin-jsonc": "3.1.2",
66-
"eslint-plugin-markdown": "5.1.0",
6766
"eslint-plugin-n": "17.16.1",
6867
"eslint-plugin-package-json": "0.26.0",
6968
"eslint-plugin-perfectionist": "5.9.0",

0 commit comments

Comments
 (0)