-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.json
72 lines (67 loc) · 1.69 KB
/
.eslintrc.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": [ "react" ],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"comma-dangle": 0,
"indent": ["error", 2, { "SwitchCase": 2 }],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "ignore",
"asyncArrow": "ignore"
}],
"arrow-body-style": 0,
"array-bracket-spacing": ["warn", "always"],
"space-before-blocks": ["error", "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"object-curly-spacing": ["warn", "always"],
"one-var-declaration-per-line": 0,
"one-var": 0,
"no-unused-expressions": 0,
"no-trailing-spaces": "error",
"no-case-declarations": 0,
"arrow-parens": 0,
"import/no-named-as-default": 0,
"no-const-assign": "error",
"no-this-before-super": "error",
"no-undef": "error",
"no-unreachable": "warn",
"no-unused-vars": "error",
"constructor-super": "warn",
"valid-typeof": "warn",
"no-param-reassign": 0,
"func-names": 0,
"no-underscore-dangle": 0,
"no-return-assign": 0,
"max-len": [2, 160],
"new-cap": 0,
"guard-for-in": 0,
"no-restricted-syntax": 0,
"consistent-return": 0,
"radix": 0,
"camelcase": 0,
"no-useless-escape": 0,
"no-plusplus": 0,
"no-shadow": 0,
"no-else-return": 0,
"no-use-before-define": 0,
"no-continue": 0,
"no-loop-func": 0,
"no-fallthrough": 0,
"no-nested-ternary": 0,
"default-case": 0,
"prefer-spread": 0,
"template-curly-spacing": [ 2, "always" ]
}
}