[](http://commitizen.github.io/cz-cli/)
npm install eslint-config-standards
- with prettier support, thanks to eslint-plugin-prettier
The default export contains all default Airbnb ESLint rules, including
ECMAScript 6+, and the ones listed below. It requires some peerDependencies as
well.
Install the package with
``sh
npm install eslint-config-standard --save-dev
Then install the correct versions of each peerDependency package, which are
listed by the command:
`sh
npm info "eslint-config-standard@latest" peerDependencies
`If using npm 5+, use this shortcut:
`sh
npx install-peerdeps --dev eslint-config-standardor
yarn add eslint-config-standard -D --peer
`Usage
Now add the config to either your
package.json:`json
{
"eslintConfig": {
"extends": "eslint-config-standard"
}
}
`to your
.eslintrc:`json
{
"extends": "eslint-config-standard"
}
`or
.eslintrc.js:`js
module.exports = {
extends: 'eslint-config-standard',
}
``This ESLint configuration comes with some fundamental assumptions:
- browser and/or node environment
- parser: babel (used babel-eslint parser)
![]() Stefan Natter |