Skip to content

Instantly share code, notes, and snippets.

@Spaider
Created December 9, 2015 08:38
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 Spaider/3dc7ac034b7e3ca5e8e0 to your computer and use it in GitHub Desktop.
Save Spaider/3dc7ac034b7e3ca5e8e0 to your computer and use it in GitHub Desktop.
ESLint configuration for Athlinks project
{
"rules": {
"indent": [2, 2, {"SwitchCase" : 1, "VariableDeclarator" : 2}],
"quotes": [2, "single"],
"linebreak-style": [0, "unix"],
"semi": [2, "always"],
"camelcase": 2,
"no-underscore-dangle": 2,
"no-console": 1, // Allow console for debug purposes. Must be configured as error for production
"semi-spacing": 2,
"comma-spacing": 2,
"space-after-keywords": 2,
"space-infix-ops": 2,
"space-return-throw-case": 2,
"space-before-function-paren": 2,
"no-extra-semi": 2,
"valid-jsdoc": 0 // Yet
},
"env": {
"node": true,
"browser": true
},
"extends": "eslint:recommended",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"destructuring": true
},
"plugins": [
"react"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment