Ahmed Abbas
Ahmed Abbas

Reputation: 962

babel-eslint vs eslint-plugin-babel vs eslint-plugin-react?

What is the difference between the libraries?

Upvotes: 21

Views: 6921

Answers (1)

Ilya Volodin
Ilya Volodin

Reputation: 11256

  • babel-eslint is a parser that allows you to use ESLint with code that is supported by Babel (ES6+ features, flow types, etc.). ESLint on it's own only supports ES6, JSX and object rest/spread. Anything beyond that, requires babel-eslint.
  • eslint-plugin-babel is a plugin that fixes/adds a few rules that work with ES7 and beyond features.
  • eslint-plugin-react is a plugin that adds a bunch of rules specific to React applications.

Upvotes: 32

Related Questions