Skip to content

Commit

Permalink
Updated ESLint markdown and jsx-a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineTham committed Nov 7, 2024
1 parent ec3df37 commit 803ae9b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
17 changes: 14 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
import eslintPluginAstro from 'eslint-plugin-astro'
import jsxA11y from 'eslint-plugin-jsx-a11y'
import * as mdx from 'eslint-plugin-mdx'
import markdown from "eslint-plugin-markdown"
import markdown from '@eslint/markdown'
import unocss from '@unocss/eslint-config/flat'

export default [
...eslintPluginAstro.configs['flat/recommended'],
jsxA11y.flatConfigs.recommended,
// ...eslintPluginAstro.configs['flat/jsx-a11y-recommended'],
{ ...mdx.flat },
...markdown.configs.recommended,
unocss,
{
files: ['**/*.md'],
plugins: {
markdown
},
language: 'markdown/commonmark',
rules: {
'markdown/no-html': 'error'
}
},
unocss
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@eslint/markdown": "^6.2.1",
"@iconify-json/heroicons": "^1.2.1",
"@iconify-json/logos": "^1.2.3",
"@julr/unocss-preset-forms": "^0.1.0",
Expand All @@ -28,7 +29,6 @@
"eslint": "^9.14.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-mdx": "^3.1.5",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
Expand Down
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 803ae9b

Please sign in to comment.