eslint-config-bce
v7.0.0
Published
eslint-config for js
Downloads
4,996
Readme
eslint-config-bce
Eslint config for nodejs/es6
- based on eslint-config-airbnb-base
- add some friendly rules from practice.
Usage
- Install
npm install --save-dev eslint eslint-config-bce
- add config to
.eslintrc
{
extends: 'eslint-config-bce',
rules: {
// custom rules
}
}
- add
lint
command in project's package.json
{
"scripts": {
"lint": "eslint src"
}
}
- run
npm run lint
npm run lint --fix # lint and auto fix
Browser or React project lint refer to eslint-config-bcd-react