1
1
reportUnusedDisableDirectives: true
2
2
extends:
3
3
- "eslint:recommended"
4
-
- "plugin:node/recommended"
4
+
- "plugin:n/recommended"
5
5
- "plugin:jsdoc/recommended"
6
6
- "plugin:eslint-comments/recommended"
7
7
plugins:
@@ -14,34 +14,34 @@ settings:
14
14
class: "constructor"
15
15
preferredTypes:
16
16
"*":
17
-
message: "Use a more precise type or if necessary use `any` or `ArbitraryCallbackResult`"
18
-
replacement: "any"
17
+
message: "Use a more precise type or if necessary use `any` or `ArbitraryCallbackResult`"
18
+
replacement: "any"
19
19
Any:
20
-
message: "Use a more precise type or if necessary use `any` or `ArbitraryCallbackResult`"
21
-
replacement: "any"
20
+
message: "Use a more precise type or if necessary use `any` or `ArbitraryCallbackResult`"
21
+
replacement: "any"
22
22
# Function:
23
23
# message: "Point to a `@callback` namepath or `GenericCallback` if truly arbitrary in form"
24
24
# replacement: "GenericCallback"
25
25
# function:
26
26
# message: "Point to a `@callback` namepath or `GenericCallback` if truly arbitrary in form"
27
27
# replacement: "GenericCallback"
28
28
function:
29
-
message: "Point to a `@callback` namepath or `Function` if truly arbitrary in form"
30
-
replacement: "Function"
29
+
message: "Point to a `@callback` namepath or `Function` if truly arbitrary in form"
30
+
replacement: "Function"
31
31
Promise:
32
-
message: "Specify the specific Promise type, including, if necessary, the type `any`"
32
+
message: "Specify the specific Promise type, including, if necessary, the type `any`"
33
33
".<>":
34
-
message: "Prefer type form without dot"
35
-
replacement: "<>"
34
+
message: "Prefer type form without dot"
35
+
replacement: "<>"
36
36
# Object:
37
37
# message: "Use the specific object type or `PlainObject` if truly arbitrary"
38
38
# replacement: "PlainObject"
39
39
# object:
40
40
# message: "Use the specific object type or `PlainObject` if truly arbitrary"
41
41
# replacement: "PlainObject"
42
42
object:
43
-
message: "Use the specific object type or `Object` if truly arbitrary"
44
-
replacement: "Object"
43
+
message: "Use the specific object type or `Object` if truly arbitrary"
44
+
replacement: "Object"
45
45
# Array:
46
46
# message: "Use the specific array type or `GenericArray` if it is truly arbitrary."
47
47
# replacement: "GenericArray"
56
56
arrow-body-style: ["error", "as-needed"]
57
57
arrow-parens: ["error", "as-needed"]
58
58
arrow-spacing: "error"
59
-
indent: ["error", 4, {SwitchCase: 1}]
59
+
indent: ["error", 4, { SwitchCase: 1 }]
60
60
block-spacing: "error"
61
61
brace-style: ["error", "1tbs"]
62
62
camelcase: "error"
@@ -101,9 +101,21 @@ rules:
101
101
jsdoc/require-description: ["error", { checkConstructors: false }]
102
102
# jsdoc/require-file-overview: "error"
103
103
jsdoc/require-hyphen-before-param-description: ["error", "never"]
104
-
jsdoc/require-returns: ["error", { forceRequireReturn: true, forceReturnsWithAsync: true }]
104
+
jsdoc/require-returns:
105
+
["error", { forceRequireReturn: true, forceReturnsWithAsync: true }]
105
106
jsdoc/require-throws: "error"
106
-
jsdoc/tag-lines: ["error", "never", { tags: { example: { lines: "always" }, fileoverview: { lines: "any" } } }]
107
+
jsdoc/tag-lines:
108
+
[
109
+
"error",
110
+
"never",
111
+
{
112
+
tags:
113
+
{
114
+
example: { lines: "always" },
115
+
fileoverview: { lines: "any" },
116
+
},
117
+
},
118
+
]
107
119
108
120
# jsdoc: disable recommended rules
109
121
jsdoc/no-undefined-types: "off"
@@ -120,7 +132,7 @@ rules:
120
132
jsdoc/implements-on-classes: "error"
121
133
jsdoc/multiline-blocks: "error"
122
134
jsdoc/no-multi-asterisks: "error"
123
-
jsdoc/require-jsdoc: ["error", { require: {ClassDeclaration: true} }]
135
+
jsdoc/require-jsdoc: ["error", { require: { ClassDeclaration: true } }]
124
136
jsdoc/require-param: "error"
125
137
jsdoc/require-param-description: "error"
126
138
jsdoc/require-param-name: "error"
@@ -137,19 +149,28 @@ rules:
137
149
138
150
key-spacing: ["error", { beforeColon: false, afterColon: true }]
139
151
keyword-spacing: "error"
140
-
lines-around-comment: ["error", {
141
-
beforeBlockComment: true,
142
-
afterBlockComment: false,
143
-
beforeLineComment: true,
144
-
afterLineComment: false
145
-
}]
146
-
max-len: ["error", 160, {
147
-
"ignoreComments": true,
148
-
"ignoreUrls": true,
149
-
"ignoreStrings": true,
150
-
"ignoreTemplateLiterals": true,
151
-
"ignoreRegExpLiterals": true
152
-
}]
152
+
lines-around-comment:
153
+
[
154
+
"error",
155
+
{
156
+
beforeBlockComment: true,
157
+
afterBlockComment: false,
158
+
beforeLineComment: true,
159
+
afterLineComment: false,
160
+
},
161
+
]
162
+
max-len:
163
+
[
164
+
"error",
165
+
160,
166
+
{
167
+
"ignoreComments": true,
168
+
"ignoreUrls": true,
169
+
"ignoreStrings": true,
170
+
"ignoreTemplateLiterals": true,
171
+
"ignoreRegExpLiterals": true,
172
+
},
173
+
]
153
174
max-statements-per-line: "error"
154
175
new-cap: "error"
155
176
new-parens: "error"
@@ -175,7 +196,7 @@ rules:
175
196
no-mixed-spaces-and-tabs: ["error", false] # Modified from recommended
176
197
no-multi-spaces: "error"
177
198
no-multi-str: "error"
178
-
no-multiple-empty-lines: ["error", {max: 2, maxBOF: 0, maxEOF: 0}]
199
+
no-multiple-empty-lines: ["error", { max: 2, maxBOF: 0, maxEOF: 0 }]
179
200
no-nested-ternary: "error"
180
201
no-new: "error"
181
202
no-new-func: "error"
@@ -185,15 +206,35 @@ rules:
185
206
no-param-reassign: "error"
186
207
no-proto: "error"
187
208
no-process-exit: "off"
188
-
no-restricted-properties: [
189
-
"error",
190
-
{ property: "substring", message: "Use .slice instead of .substring." },
191
-
{ property: "substr", message: "Use .slice instead of .substr." },
192
-
{ object: "assert", property: "equal", message: "Use assert.strictEqual instead of assert.equal." },
193
-
{ object: "assert", property: "notEqual", message: "Use assert.notStrictEqual instead of assert.notEqual." },
194
-
{ object: "assert", property: "deepEqual", message: "Use assert.deepStrictEqual instead of assert.deepEqual." },
195
-
{ object: "assert", property: "notDeepEqual", message: "Use assert.notDeepStrictEqual instead of assert.notDeepEqual." }
196
-
]
209
+
no-restricted-properties:
210
+
[
211
+
"error",
212
+
{
213
+
property: "substring",
214
+
message: "Use .slice instead of .substring.",
215
+
},
216
+
{ property: "substr", message: "Use .slice instead of .substr." },
217
+
{
218
+
object: "assert",
219
+
property: "equal",
220
+
message: "Use assert.strictEqual instead of assert.equal.",
221
+
},
222
+
{
223
+
object: "assert",
224
+
property: "notEqual",
225
+
message: "Use assert.notStrictEqual instead of assert.notEqual.",
226
+
},
227
+
{
228
+
object: "assert",
229
+
property: "deepEqual",
230
+
message: "Use assert.deepStrictEqual instead of assert.deepEqual.",
231
+
},
232
+
{
233
+
object: "assert",
234
+
property: "notDeepEqual",
235
+
message: "Use assert.notDeepStrictEqual instead of assert.notDeepEqual.",
236
+
},
237
+
]
197
238
no-return-assign: "error"
198
239
no-script-url: "error"
199
240
no-self-compare: "error"
@@ -202,15 +243,18 @@ rules:
202
243
no-tabs: "error"
203
244
no-throw-literal: "error"
204
245
no-trailing-spaces: "error"
205
-
no-undef: ["error", {typeof: true}] # Modified from recommended
246
+
no-undef: ["error", { typeof: true }] # Modified from recommended
206
247
no-undef-init: "error"
207
248
no-undefined: "error"
208
-
no-underscore-dangle: ["error", {allowAfterThis: true}]
249
+
no-underscore-dangle: ["error", { allowAfterThis: true }]
209
250
no-unmodified-loop-condition: "error"
210
251
no-unneeded-ternary: "error"
211
252
no-unreachable-loop: "error"
212
253
no-unused-expressions: "error"
213
-
no-unused-vars: ["error", {vars: "all", args: "after-used", caughtErrors: "all"}] # Modified from recommended
254
+
no-unused-vars: [
255
+
"error",
256
+
{ vars: "all", args: "after-used", caughtErrors: "all" },
257
+
] # Modified from recommended
214
258
no-use-before-define: "error"
215
259
no-useless-call: "error"
216
260
no-useless-computed-key: "error"
@@ -221,12 +265,12 @@ rules:
221
265
no-whitespace-before-property: "error"
222
266
no-var: "error"
223
267
224
-
node/callback-return: ["error", ["cb", "callback", "next"]]
225
-
node/handle-callback-err: ["error", "err"]
226
-
node/no-deprecated-api: "error"
227
-
node/no-mixed-requires: "error"
228
-
node/no-new-require: "error"
229
-
node/no-path-concat: "error"
268
+
n/callback-return: ["error", ["cb", "callback", "next"]]
269
+
n/handle-callback-err: ["error", "err"]
270
+
n/no-deprecated-api: "error"
271
+
n/no-mixed-requires: "error"
272
+
n/no-new-require: "error"
273
+
n/no-path-concat: "error"
230
274
231
275
object-curly-newline: ["error", { "consistent": true, "multiline": true }]
232
276
object-curly-spacing: ["error", "always"]
@@ -235,19 +279,16 @@ rules:
235
279
one-var-declaration-per-line: "error"
236
280
operator-assignment: "error"
237
281
operator-linebreak: "error"
238
-
padding-line-between-statements: [
239
-
"error",
240
-
{
241
-
blankLine: "always",
242
-
prev: ["const", "let", "var"],
243
-
next: "*"
244
-
},
245
-
{
246
-
blankLine: "any",
247
-
prev: ["const", "let", "var"],
248
-
next: ["const", "let", "var"]
249
-
}
250
-
]
282
+
padding-line-between-statements:
283
+
[
284
+
"error",
285
+
{ blankLine: "always", prev: ["const", "let", "var"], next: "*" },
286
+
{
287
+
blankLine: "any",
288
+
prev: ["const", "let", "var"],
289
+
next: ["const", "let", "var"],
290
+
},
291
+
]
251
292
prefer-arrow-callback: "error"
252
293
prefer-const: "error"
253
294
prefer-exponentiation-operator: "error"
@@ -257,24 +298,24 @@ rules:
257
298
prefer-rest-params: "error"
258
299
prefer-spread: "error"
259
300
prefer-template: "error"
260
-
quotes: ["error", "double", {avoidEscape: true}]
301
+
quotes: ["error", "double", { avoidEscape: true }]
261
302
quote-props: ["error", "as-needed"]
262
303
radix: "error"
263
304
require-unicode-regexp: "error"
264
305
rest-spread-spacing: "error"
265
306
semi: "error"
266
-
semi-spacing: ["error", {before: false, after: true}]
307
+
semi-spacing: ["error", { before: false, after: true }]
267
308
semi-style: "error"
268
309
space-before-blocks: "error"
269
-
space-before-function-paren: ["error", {
270
-
"anonymous": "never",
271
-
"named": "never",
272
-
"asyncArrow": "always"
273
-
}]
310
+
space-before-function-paren:
311
+
[
312
+
"error",
313
+
{ "anonymous": "never", "named": "never", "asyncArrow": "always" },
314
+
]
274
315
space-in-parens: "error"
275
316
space-infix-ops: "error"
276
-
space-unary-ops: ["error", {words: true, nonwords: false}]
277
-
spaced-comment: ["error", "always", { exceptions: ["-"]}]
317
+
space-unary-ops: ["error", { words: true, nonwords: false }]
318
+
spaced-comment: ["error", "always", { exceptions: ["-"] }]
278
319
strict: ["error", "global"]
279
320
switch-colon-spacing: "error"
280
321
symbol-description: "error"
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4