This package is inspired by Airbnb Eslint with customizations for what I need.
- Install the correct versions of each package, which are listed by the command:
npx install-peerdeps --dev eslint-config-mg
Note: The peer dependency babel-eslint
is just needed if you use mg/babel
.
- Add
"extends": "mg"
to your .eslintrc.
- You can extend
mg
ormg/base
to just import javascript related rules. - You can extend
mg/react
to import react related rules. - You can extend
mg/babel
to import base related rules that supports babel.
Note: When using mg/babel
you will need to have "babel-eslint` installed as well. It is a peer dependency.