Skip to content

Instantly share code, notes, and snippets.

@jonatasleon
Created May 3, 2017 14:06
Show Gist options
  • Save jonatasleon/20075e47b3ddc39b12a4d1dd9cb2adc0 to your computer and use it in GitHub Desktop.
Save jonatasleon/20075e47b3ddc39b12a4d1dd9cb2adc0 to your computer and use it in GitHub Desktop.
Eslint config to airbnb js style
{
"extends": "airbnb",
"rules": {
"semi": 2,
"import/no-extraneous-dependencies": [
"error", {
"devDependencies": true
}
]
},
"globals": {
"describe": true,
"app": true,
"beforeEach": true,
"before": true,
"it": true,
"request": true,
"expect": true,
"td": true,
"Joi": true,
"joiAssert": true
}
}
(
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment