-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
53 lines (53 loc) · 1.29 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
50
51
52
53
{
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"plugins": [
"eslint-plugin-react"
],
"rules": {
"brace-style": [ 1, "1tbs" ],
"comma-spacing": 1,
// Allows returning early as undefined
"consistent-return": 0,
"dot-notation": 1,
"eqeqeq": [ 2, "allow-null" ],
"eol-last": 1,
"indent": [ 1, "tab", { "SwitchCase": 1 } ],
"key-spacing": 1,
"new-cap": 1,
"no-cond-assign": 2,
"no-else-return": 1,
"no-empty": 1,
"no-fallthrough": 0,
"no-lonely-if": 1,
"no-mixed-requires": 0,
"no-mixed-spaces-and-tabs": 1,
"no-multi-spaces": 1,
"no-nested-ternary": 1,
"no-new": 1,
"no-process-exit": 1,
"no-shadow": 1,
"no-spaced-func": 1,
"no-trailing-spaces": 1,
"no-underscore-dangle": 0,
"no-unused-vars": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"no-use-before-define": [ 2, "nofunc" ],
"operator-linebreak": [ 1, "after" ],
"quote-props": [ 1, "as-needed" ],
"quotes": [ 1, "single", "avoid-escape" ],
"semi-spacing": 1,
//"space-after-keywords": [ 1, "always" ],
"space-before-blocks": [ 1, "always" ],
"space-before-function-paren": [ 1, "never" ],
"space-in-brackets": 0,
"space-infix-ops": [ 1, { "int32Hint": false } ],
// Assumed by default with Babel
"strict": [ 2, "never" ],
}
}