-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
63 lines (61 loc) · 2.11 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
54
55
56
57
58
59
60
61
62
63
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
},
"root": true,
"rules": {
"strict": 2,
"no-shadow-restricted-names": 1,
"constructor-super": 2,
"no-const-assign": 2,
"no-this-before-super": 2,
"array-bracket-spacing": [2, "never"],
"arrow-spacing": 2,
"block-spacing": [2, "never"],
"brace-style": [2, "allman", {"allowSingleLine": true}],
"camelcase": 2,
"comma-dangle": "error",
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"eol-last": 2,
"indent": ["error", 4, {"SwitchCase": 1}],
"jsx-quotes": [2, "prefer-double"],
"keyword-spacing": [1, {}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"lines-around-comment": [2, {"beforeBlockComment": true}],
"linebreak-style": [2, "unix"],
"new-cap": 2,
"new-parens": 2,
"no-array-constructor": 2,
"no-dupe-keys": 2,
"no-lonely-if": 1,
"no-multiple-empty-lines": [2, {"max": 2}],
"no-nested-ternary": 2,
"no-restricted-syntax": [2, "WithStatement"],
"no-spaced-func": 2,
"no-trailing-spaces": 1,
"no-undef": 1,
"no-unneeded-ternary": 1,
"object-curly-spacing": [2, "never"],
"object-shorthand": 1,
"operator-assignment": [1, "always"],
"padded-blocks": [2, "never"],
"quote-props": [2, "consistent-as-needed"],
"quotes": [2, "single", {"allowTemplateLiterals": true, "avoidEscape": true}],
"semi": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"spaced-comment": [1, "always"],
"wrap-regex": 2
}
}