-
-
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.
chore: bump version & add eslint-mdx back
- Loading branch information
1 parent
cc35816
commit 00f439b
Showing
6 changed files
with
1,345 additions
and
319 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@hyperse/eslint-config-hyperse": patch | ||
--- | ||
|
||
bump add eslint-mdx back |
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
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
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,4 +1,15 @@ | ||
import { defineFlatConfig } from 'eslint-define-config'; | ||
import pluginMdx from 'eslint-plugin-markdown'; | ||
import pluginMdx from 'eslint-plugin-mdx'; | ||
|
||
export const mdx = defineFlatConfig([...pluginMdx.configs.recommended]); | ||
export const mdx = defineFlatConfig([ | ||
{ | ||
...(pluginMdx.flat as any), | ||
// optional, if you want to lint code blocks at the same | ||
processor: pluginMdx.createRemarkProcessor({ | ||
lintCodeBlocks: true, | ||
// optional, if you want to disable language mapper, set it to `false` | ||
// if you want to override the default language mapper inside, you can provide your own | ||
languageMapper: {}, | ||
}), | ||
}, | ||
]); |
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,5 +1,5 @@ | ||
declare module 'eslint-plugin-tailwindcss'; | ||
declare module 'eslint-plugin-react-hooks'; | ||
declare module 'eslint-plugin-react'; | ||
declare module '@next/eslint-plugin-next'; | ||
declare module 'eslint-plugin-markdown'; | ||
declare module '@next/eslint-plugin-next'; |
Oops, something went wrong.