Skip to content

Reusing es-lint config and rules with Bit #4957

Answered by GiladShoham
GiladShoham asked this question in FAQ
Discussion options

You must be logged in to vote

In this topic I discuss how to take ESlint config, build it into a component, and use it in different projects.

Note

Bit supports standardizing ESLint across components with the Component Development Environment feature. In this topic I will not cover this feature.

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:

  • Share ESLint configuration across two unrelated Bit Component Development Environment.
  • Share ESLint configuration between different projects.

Internally Bit manages a component with a default ESLint config (see here), which is then used…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GiladShoham
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants