question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ESLint rules: shareable recommended config

See original GitHub issue

It 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:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
akrabdevcommented, Apr 14, 2022

Thank you for the clarification! Wanted to make sure we are on the same page. The example you provided should be extremely helpful too.

1reaction
samijabercommented, Apr 14, 2022

Also for having shareable config, tell me more about your goal in mind is it for example creating a standalone npm package in mitosis/packages/ ex: eslint-config-mitosis ?

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found