Skip to content

Instantly share code, notes, and snippets.

@tonyjcamp
Last active May 25, 2016 00:11
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 tonyjcamp/b89b99a5446342ac52f75b78f6054491 to your computer and use it in GitHub Desktop.
Save tonyjcamp/b89b99a5446342ac52f75b78f6054491 to your computer and use it in GitHub Desktop.
.eslint, so far ;)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"quotes": [
"error",
"single"
],
"semi": [
2,
"never"
],
"no-console": [
"error",
{
"allow": ["log"]
}
],
"no-empty": "error",
"eqeqeq": "error",
"prefer-const": "error",
"no-const-assign": "error",
"jsx-quotes": [
"error",
"prefer-double"
],
"space-in-parens": [
"error",
"never"
],
"no-multi-spaces": "error",
"no-unused-vars": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment