Reusing es-lint config and rules with Bit #4957
-
how to share ESLint config with Bit components? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In this topic I discuss how to take ESlint config, build it into a component, and use it in different projects.
In their documentation, ESlint discusses the concept of shareable configs and describes in high-level how to do that. Moving ESlint config to Bit components can be useful for two main cases:
Internally Bit manages a component with a default ESLint config (see here), which is then used as part of the React env (see line 5). "componentize" ESLing configCreate a new component with three files:
|
Beta Was this translation helpful? Give feedback.
-
@GiladShoham Thank you so much for this answer. I've been searching everywhere for this. This should really be in the docs somewhere. |
Beta Was this translation helpful? Give feedback.
In this topic I discuss how to take ESlint config, build it into a component, and use it in different projects.
In their documentation, ESlint discusses the concept of shareable configs and describes in high-level how to do that.
Moving ESlint config to Bit components can be useful for two main cases:
Internally Bit manages a component with a default ESLint config (see here), which is then used…