eslint-config-airbnb-improved
v5.0.3
Published
Eslint configuration based on Airbnb with some improvements
Downloads
234
Readme
eslint-config-airbnb-improved
Eslint plugin based on Airbnb
install
npm install --save-dev eslint-config-airbnb-improved
usage
in .eslinrc
:
{
"extends": "eslint-config-airbnb-improved"
}
Of course, you can overwrite any rules to satisfy your needs.
in package.json
:
{
"scripts": {
"lint": "eslint *.js app src",
}
}
run npm run lint
Major differences with standard Airbnb:
- Required sorting of imports and keys in object
- Required empty line before
return
- Allowing
++
operator - Allowing not using
this
keyword in object methods.
Why this plugin?
- Because some of Airbnb rules make coding harder with no good reason.
- Because Airbnb does not specify many coding rules.