errors are not detected after migrating to @eslint/markdown #656
-
|
Hello, I am trying to migrate to @eslint/markdown at the pull request here and, after updating the configuration to use @eslint/markdown, errors are no longer detected in the README. Would someone tell me what I am doing wrong? A possibly-related issue (not sure) is that the "migration guide" at this link uses the "extends" key in all of its examples, but eslint disallows the extends keyword, "extends" key, which is not supported in flat config system.$ npm run lint
> esmock@2.7.4 lint
> eslint .
Oops! Something went wrong! :(
ESLint: 10.3.0
A config object is using the "extends" key, which is not supported in flat config system.
Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array.
If you're using "extends" in your config file, please see the following:
https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs
If you're not using "extends" directly (it may be coming from a plugin), please see the following:
https://eslint.org/docs/latest/use/configure/migration-guide#use-eslintrc-configs-in-flat-configI wasn't sure how to resolve. I did try wrapping the config with {
files: ["*.md", "*.md/*.js"],
language: "markdown/gfm",
plugins: {markdown}
},thank you for any help, advice or recommendations |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I resolved the issue with a suggestion from google gemini search response. The correct configuration looks like this, where flat style, [
...markdown.configs.processor,
{
files: ["*.md"],
language: "markdown/gfm",
plugins: {markdown}
},
...rest
]defineConfig style, defineConfig[
markdown.configs.processor,
{
files: ["*.md"],
language: "markdown/gfm",
plugins: {markdown}
},
...rest
] |
Beta Was this translation helpful? Give feedback.
I resolved the issue with a suggestion from google gemini search response.
The correct configuration looks like this, where
markdown.configs.processoris required. Ifmarkdown.configs.processoris necessary, imo, it should shown in migration guide and README.md (it is not)flat style,
defineConfig style,