-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
executable file
·55 lines (55 loc) · 1.46 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
{
"parser": "babel-eslint",
"parserOptions": {
"codeFrame": false
},
"extends": [
"eslint:recommended"
],
"globals": {
"-Promise": true
},
"env":{
"es6": true,
"browser": true,
"commonjs": true
},
"rules": {
"block-scoped-var": 2,
"block-spacing": 2,
"camelcase": 0,
"comma-dangle": [2, "only-multiline"],
"eqeqeq": [2, "smart"],
"func-call-spacing": [2, "never"],
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3}, "flatTernaryExpressions": true}],
"keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}],
"new-cap": 0,
"no-alert": 0,
"no-case-declarations": 0,
"no-console": 0,
"no-constant-condition": 1,
"no-extra-label": 2,
"no-fallthrough": 2,
"no-lone-blocks": 2,
"no-lonely-if": 2,
"no-loop-func": 2,
"no-multiple-empty-lines": 2,
"no-tabs": 2,
"no-trailing-spaces": 2,
"no-underscore-dangle": 0,
"no-unexpected-multiline": 2,
"no-unneeded-ternary": 2,
"no-unused-vars": [1, {"ignoreRestSiblings": true, "varsIgnorePattern": "React", "args": "none"}],
"no-useless-call": 2,
"no-useless-computed-key": 1,
"no-useless-concat": 2,
"no-useless-rename": 1,
"no-useless-return": 2,
"no-var": 2,
"object-shorthand": 2,
"quotes": [2, "single", { "allowTemplateLiterals": true }],
"radix": 2,
"semi": [2, "never"],
"space-before-blocks": 2
}
}