Created
August 30, 2017 14:52
-
-
Save vsnikkil/09614645f675b4fb92192b5e389b2a09 to your computer and use it in GitHub Desktop.
ESLint configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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