Skip to content

Instantly share code, notes, and snippets.

@vsnikkil
Created August 30, 2017 14:52
Show Gist options
  • Save vsnikkil/09614645f675b4fb92192b5e389b2a09 to your computer and use it in GitHub Desktop.
Save vsnikkil/09614645f675b4fb92192b5e389b2a09 to your computer and use it in GitHub Desktop.
ESLint configuration
{
"env": {
"browser": true,
"node": true,
"es6": true,
"amd": true,
"jest/globals": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react", "jest"],
"rules": {
"react/jsx-uses-vars": ["error"],
"eol-last": ["error", "always"],
"key-spacing": ["error", { "beforeColon": false }],
"comma-spacing": ["error", { "before": false, "after": true }],
"react/jsx-curly-spacing": ["warn", { "when": "always", "children": true }],
"space-infix-ops": ["error"],
"indent": [
"error", 2,
{ "SwitchCase": 1 }
],
"space-before-function-paren": ["error", "always"],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment