Skip to content

Commit 803ae9b

Browse files
committed
Updated ESLint markdown and jsx-a11y
1 parent ec3df37 commit 803ae9b

File tree

3 files changed

+31
-20
lines changed

3 files changed

+31
-20
lines changed

eslint.config.mjs

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
import eslintPluginAstro from 'eslint-plugin-astro'
2+
import jsxA11y from 'eslint-plugin-jsx-a11y'
23
import * as mdx from 'eslint-plugin-mdx'
3-
import markdown from "eslint-plugin-markdown"
4+
import markdown from '@eslint/markdown'
45
import unocss from '@unocss/eslint-config/flat'
56

67
export default [
78
...eslintPluginAstro.configs['flat/recommended'],
9+
jsxA11y.flatConfigs.recommended,
810
// ...eslintPluginAstro.configs['flat/jsx-a11y-recommended'],
911
{ ...mdx.flat },
10-
...markdown.configs.recommended,
11-
unocss,
12+
{
13+
files: ['**/*.md'],
14+
plugins: {
15+
markdown
16+
},
17+
language: 'markdown/commonmark',
18+
rules: {
19+
'markdown/no-html': 'error'
20+
}
21+
},
22+
unocss
1223
]

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@astrojs/check": "^0.9.4",
21+
"@eslint/markdown": "^6.2.1",
2122
"@iconify-json/heroicons": "^1.2.1",
2223
"@iconify-json/logos": "^1.2.3",
2324
"@julr/unocss-preset-forms": "^0.1.0",
@@ -28,7 +29,6 @@
2829
"eslint": "^9.14.0",
2930
"eslint-plugin-astro": "^1.3.1",
3031
"eslint-plugin-jsx-a11y": "^6.10.2",
31-
"eslint-plugin-markdown": "^5.1.0",
3232
"eslint-plugin-mdx": "^3.1.5",
3333
"prettier": "^3.3.3",
3434
"prettier-plugin-astro": "^0.14.1",

pnpm-lock.yaml

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)