npm install @dialexa/eslint-config-dialexa --save-dev
Lastly, make sure you have eslint installed in your project
npm install eslint --save-dev
If you are using the React settings, make sure you have babel-eslint
installed, as well as eslint-plugin-react
npm install babel-eslint eslint-plugin-react --save-dev
Add one of the following to your project's .eslintrc
file (based on your project type).
{
"extends": "@dialexa/eslint-config-dialexa"
}
{
"extends": "@dialexa/eslint-config-dialexa/es6"
}
{
"extends": "@dialexa/eslint-config-dialexa/node-es6"
}
{
"extends": "@dialexa/eslint-config-dialexa/ember"
}
{
"extends": "@dialexa/eslint-config-dialexa/react"
}