-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (49 loc) · 1.52 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"parser": "babel-eslint",
"rules": {
"space-in-parens": ["error", "never"],
"no-useless-constructor": "error",
"operator-linebreak": ["error", "after"],
"comma-spacing": "error",
"object-curly-spacing": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"eqeqeq": "error",
"no-multi-spaces": "error",
"prefer-const": "error",
"space-infix-ops": "error",
"keyword-spacing": "error",
"eol-last": "error",
"indent": ["error", 4],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"react/jsx-boolean-value": ["error", "always"],
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-unknown-property": "error",
"react/react-in-jsx-scope": "error",
"react/self-closing-comp": "error",
"react/wrap-multilines": "error",
"react/jsx-space-before-closing": "error"
},
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"globals": {
"sinon": true,
"expect": true
},
"extends": "eslint:recommended",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"plugins": [
"eslint-plugin-react"
]
}