Skip to content

Instantly share code, notes, and snippets.

@reblws
Created October 5, 2017 02:31
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 reblws/8981ff2536a87097cc3c6d393ab13f15 to your computer and use it in GitHub Desktop.
Save reblws/8981ff2536a87097cc3c6d393ab13f15 to your computer and use it in GitHub Desktop.
eslint the way i like it (browsers + react)
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"extends": "airbnb",
"rules": {
"global-require": 0,
"react/jsx-filename-extension": 0,
"arrow-parens": 0,
"no-use-before-define": 0,
"comma-dangle": ["error", {
"functions": "ignore",
"objects": "always-multiline",
"exports": "always-multiline",
"imports": "always-multiline",
"arrays": "always-multiline"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment