Skip to content

Instantly share code, notes, and snippets.

@agm1984
Created May 1, 2018 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agm1984/a0d89bcafc96c0c0d9cfa13589f75ce8 to your computer and use it in GitHub Desktop.
Save agm1984/a0d89bcafc96c0c0d9cfa13589f75ce8 to your computer and use it in GitHub Desktop.
Adam ES Lint Airbnb config settings
{
"env": {
"node": true,
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": "airbnb",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"camelcase": 0,
"eol-last": [
"error",
"always"
],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": 0,
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": 0,
"react/no-find-dom-node": 0,
"global-require": 0,
"no-underscore-dangle": 0,
"react/no-array-index-key": 0,
"no-nested-ternary": 0,
"class-methods-use-this": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment