eslint / markdown

Lint JavaScript code blocks in Markdown documents
MIT License
406 stars 63 forks source link

Flat config #231

Closed brettz9 closed 9 months ago

brettz9 commented 10 months ago

Just a request for Flat config support (and ability to stay informed).

nzakas commented 10 months ago

Sorry, this isn't specific enough. What do you mean by "flat config support"?

brettz9 commented 10 months ago

To work as a plugin which can be used as part of the new Flat Config format. Currently, such fields as plugins are expressed in the old format (as an array of strings): https://github.com/eslint/eslint-plugin-markdown/blob/main/lib/index.js#L13

nzakas commented 10 months ago

Okay, so what you're talking about is updating the exported configs into flat config format, correct?

Please try to be more specific with requests -- I have a lot of issues to go through. :)

brettz9 commented 10 months ago

yes, thank you

ghost commented 9 months ago

Yeaeh This person may have requested the same thing that i miss!! I wanted the readme file to contain a tutorial of how to install your plugin in eslint, now eslint have changed their format from .eslintrc to their so called new flat config.

They detail : https://eslint.org/docs/latest/use/configure/migration-guide

https://eslint.org/blog/2022/08/new-config-system-part-2/

https://eslint.org/blog/2023/10/flat-config-rollout-plans/ https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/

So we would like to request you to please update your readme to allow us to install your plugin in a flat config of eslint, since the current readme doesnt work on it!! thanks!

daeh commented 9 months ago

I would also really appreciate instructions on how to set up the plugin for the new ESLint flat config. Many thanks!

nzakas commented 9 months ago

Working on this.