-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslintrc.json
122 lines (122 loc) · 3.4 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"complexity": [1, {"max": 12}],
"curly": 1,
"no-else-return": 1,
"no-floating-decimal": 1,
"no-global-assign": 1,
"no-multi-spaces": 1,
"no-unmodified-loop-condition": 1,
"no-useless-escape": 1,
"array-bracket-spacing": [1, "always"],
"brace-style": [1, "1tbs"],
"camelcase": 1,
"comma-dangle": 1,
"comma-spacing": 1,
"comma-style": 1,
"computed-property-spacing": 1,
"func-call-spacing": 1,
"indent": [1, 4, {
"SwitchCase": 1
}],
"key-spacing": 1,
"keyword-spacing": 1,
"new-cap": 1,
"padding-line-between-statements": [1,
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": ["const", "let", "var"],
"next": "*"
},
{
"blankLine": "any",
"prev": "*",
"next": ["import", "export"]
},
{
"blankLine": "any",
"prev": ["const", "let", "var"],
"next": ["const", "let", "var"]
}
],
"no-continue": 1,
"no-lonely-if": 1,
"no-mixed-operators": [1, {
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
]
}],
"no-multiple-empty-lines": [1, {
"max": 1
}],
"no-tabs": 1,
"no-unneeded-ternary": 1,
"no-whitespace-before-property": 1,
"object-curly-spacing": [1, "always"],
"one-var-declaration-per-line": 1,
"one-var": [1, {
"let": "always",
"const": "never"
}],
"operator-linebreak": [1, "after", {
"overrides": {
"?": "before",
":": "before",
"&&": "before",
"||": "before"
}
}],
"quotes": [1, "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"semi-spacing": 1,
"space-before-blocks": 1,
"space-before-function-paren": [1, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": 1,
"space-infix-ops": 1,
"space-unary-ops": 1,
"wrap-regex": 1,
"arrow-spacing": 1,
"constructor-super": 2,
"no-class-assign": 1,
"no-const-assign": 2,
"no-duplicate-imports": 1,
"no-this-before-super": 2,
"no-useless-computed-key": 1,
"no-useless-constructor": 1,
"prefer-arrow-callback": 1,
"arrow-parens": [1, "as-needed"],
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
"require-yield": 1,
"template-curly-spacing": 1,
"guard-for-in": 1,
"eqeqeq": 1,
"no-unused-vars": [1, {
"args": "none"
}],
"no-undef": 2,
"no-var": 1,
"semi": 1,
"no-extra-semi": 1
}
}