ESLint rules: shareable recommended config
See original GitHub issueIt would be great to have a “recommended” shareable config like how other popular ESLint rule plugins do. That would make it a lot easier to adopt the rules automatically (vs. enabling one by one).
https://eslint.org/docs/developer-guide/shareable-configs#creating-a-shareable-config
also, adding recommended: true
to appropriate rules (which should be all of them in our case, since they are all needed to output valid Mitosis code 🤔 ) https://eslint.org/docs/developer-guide/working-with-rules#rule-basics
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Shareable Configs - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >How ESLint Resolves Plugins And Shareable Configs
First of all, ESLint has plugins and it has shareable configs. ... Plugin — can do everything that a shareable config does +...
Read more >10up/eslint-config: A shareable ESLint config. - GitHub
@10up/eslint-config. The default export contains common rules that are not specific to any framework or environment. // eslintrc.js module ...
Read more >How to Create Your Own ESLint Config Package
ESLint is designed to be completely configurable, giving you the option of enabling/disabling each rule, or mixing the rules to match your ...
Read more >How to create a shareable eslint config
The short answer is simples, you need to create a config or plugin that will extend and set all the base rules you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for the clarification! Wanted to make sure we are on the same page. The example you provided should be extremely helpful too.
I was hoping we’d be able to store the shareable config in the same package as the rules themselves, similar to how it’s done in this typescript-eslint package: https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/src/configs
You will see that it is being exported here in the same eslint package: https://github.com/typescript-eslint/typescript-eslint/blob/18a81cb715d994e8527607c8ee3fe848a59922d8/packages/eslint-plugin/src/index.ts#L14-L15