-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
192 lines (192 loc) · 6.38 KB
/
.eslintrc.json
File metadata and controls
192 lines (192 loc) · 6.38 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "script"
},
"env": {
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"plugins": [
"jsdoc"
],
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"arrow-parens": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": [ "error", "never" ],
"comma-spacing": [ "error", {
"before": false,
"after": true
} ],
"comma-style": [ "error", "last" ],
"complexity": [ "error", 5 ],
"computed-property-spacing": [ "error", "never" ],
"curly": "error",
"default-param-last": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": [ "error", "never" ],
"func-style": [ "error", "declaration" ],
"function-call-argument-newline": [ "error", "never" ],
"generator-star-spacing": [ "error", {
"before": true,
"after": false
} ],
"guard-for-in": "error",
"implicit-arrow-linebreak": [ "error", "beside" ],
"indent": "error",
"jsdoc/check-access": "error",
"jsdoc/check-alignment": "error",
"jsdoc/check-examples": [ "error", {
"baseConfig": {
"rules": {
"strict": [ "error", "never" ]
}
},
"paddedIndent": 4
} ],
"jsdoc/check-indentation": [ "error", {
"excludeTags": [ "example" ]
} ],
"jsdoc/check-param-names": [ "error", {
"checkRestProperty": true
} ],
"jsdoc/check-syntax": "error",
"jsdoc/check-tag-names": "error",
"jsdoc/check-types": "error",
"jsdoc/implements-on-classes": "error",
"jsdoc/match-description": "error",
"jsdoc/newline-after-description": "error",
"jsdoc/no-undefined-types": [ "error", {
"definedTypes": [
"AssertionError"
]
} ],
"jsdoc/require-description": "error",
"jsdoc/require-description-complete-sentence": "error",
"jsdoc/require-example": "error",
"jsdoc/require-jsdoc": "error",
"jsdoc/require-param": "error",
"jsdoc/require-param-description": "error",
"jsdoc/require-param-name": "error",
"jsdoc/require-param-type": "error",
"jsdoc/require-returns": "error",
"jsdoc/require-returns-check": "error",
"jsdoc/require-returns-description": "error",
"jsdoc/require-returns-type": "error",
"jsdoc/valid-types": "error",
"key-spacing": ["error", {
"align": {
"beforeColon": false,
"afterColon": true,
"on": "value",
"mode": "minimum"
}
}],
"keyword-spacing": [ "error", {
"before": true,
"after": true,
"overrides": {
"function": {
"before": false
}
}
} ],
"linebreak-style": [ "error", "unix" ],
"lines-between-class-members": [ "error", "always" ],
"max-len": [ "error", {
"code": 120,
"tabWidth": 4,
"ignoreRegExpLiterals": true
} ],
"new-cap": "error",
"new-parens": "error",
"newline-per-chained-call": [ "error", {
"ignoreChainWithDepth": 2
} ],
"no-duplicate-imports": "error",
"no-extend-native": "error",
"no-implicit-coercion": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-multi-spaces": ["error", {
"exceptions": {
"VariableDeclarator": true
}
} ],
"no-multiple-empty-lines": [ "error", {
"max": 1
} ],
"no-new": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-return-assign": [ "error", "always" ],
"no-return-await": "error",
"no-throw-literal": "error",
"no-trailing-spaces": ["error", {
"ignoreComments": true
} ],
"no-undef-init": "error",
"no-underscore-dangle": "error",
"no-use-before-define": [ "error", {
"functions": false
} ],
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": [ "error", "always" ],
"operator-linebreak": [ "error", "before" ],
"padded-blocks": [ "error", "never" ],
"padding-line-between-statements": [ "error", {
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"prefer-arrow-callback": [ "error", {
"allowNamedFunctions": true
} ],
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-named-capture-group": "error",
"prefer-promise-reject-errors": "error",
"prefer-template": "error",
"quotes": [ "error", "single" ],
"radix": "error",
"require-await": "error",
"require-unicode-regexp": "error",
"rest-spread-spacing": [ "error", "never" ],
"semi": "error",
"semi-spacing": "error",
"semi-style": [ "error", "last" ],
"space-before-blocks": "error",
"space-before-function-paren": [ "error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
} ],
"space-in-parens": [ "error", "never" ],
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": [ "error", "always" ],
"strict": "error",
"switch-colon-spacing": "error",
"symbol-description": "error",
"template-curly-spacing": [ "error", "always" ],
"unicode-bom": "error",
"wrap-iife": [ "error", "inside" ],
"yield-star-spacing": [ "error", "after" ],
"yoda": "error"
}
}