-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated ESLint markdown and jsx-a11y
- Loading branch information
1 parent
ec3df37
commit 803ae9b
Showing
3 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.