Quick start guide to using Airbnb's style with ESLint.
- Navigate to your project directory and run this:
npx install-peerdeps --dev eslint-config-airbnb
- Save an
.eslintrc
file in your project directory:
{
"extends": "airbnb"
}
Optional: To extend your .eslintrc
config with extra rules, you can do the following:
{
"extends": "airbnb",
"rules": {
# "max-len": 0
},
"globals": {
# "Promise": true
}
}