eslint-config-everything 0.0.0 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of eslint-config-everything might be problematic. Click here for more details.

Files changed (70) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +3 -185
  3. package/dist/chunk-7D4SUZUM.js +38 -0
  4. package/dist/chunk-7D4SUZUM.js.map +1 -0
  5. package/dist/chunk-C6JVFMYP.js +10 -0
  6. package/dist/chunk-C6JVFMYP.js.map +1 -0
  7. package/dist/chunk-E2655ZCO.js +3002 -0
  8. package/dist/chunk-E2655ZCO.js.map +1 -0
  9. package/dist/chunk-GO5ZEIJP.js +20 -0
  10. package/dist/chunk-GO5ZEIJP.js.map +1 -0
  11. package/dist/chunk-GVUZG6ZQ.js +12 -0
  12. package/dist/chunk-GVUZG6ZQ.js.map +1 -0
  13. package/dist/chunk-IRVJ36XL.js +49 -0
  14. package/dist/chunk-IRVJ36XL.js.map +1 -0
  15. package/dist/chunk-PVI3JF33.js +436 -0
  16. package/dist/chunk-PVI3JF33.js.map +1 -0
  17. package/dist/chunk-R4EOV26M.js +9 -0
  18. package/dist/chunk-R4EOV26M.js.map +1 -0
  19. package/dist/chunk-S5OOXTIG.js +347 -0
  20. package/dist/chunk-S5OOXTIG.js.map +1 -0
  21. package/dist/chunk-SKRJ7XOK.js +15 -0
  22. package/dist/chunk-SKRJ7XOK.js.map +1 -0
  23. package/dist/chunk-ZEAYDHJD.js +7693 -0
  24. package/dist/chunk-ZEAYDHJD.js.map +1 -0
  25. package/dist/configs/javascript.d.ts +16 -0
  26. package/dist/configs/javascript.js +13 -0
  27. package/dist/configs/javascript.js.map +1 -0
  28. package/dist/configs/next.d.ts +56 -0
  29. package/dist/configs/next.js +16 -0
  30. package/dist/configs/next.js.map +1 -0
  31. package/dist/configs/react-internal.d.ts +44 -0
  32. package/dist/configs/react-internal.js +16 -0
  33. package/dist/configs/react-internal.js.map +1 -0
  34. package/dist/configs/turbo.d.ts +35 -0
  35. package/dist/configs/turbo.js +39 -0
  36. package/dist/configs/turbo.js.map +1 -0
  37. package/dist/configs/typescript.d.ts +16 -0
  38. package/dist/configs/typescript.js +21 -0
  39. package/dist/configs/typescript.js.map +1 -0
  40. package/dist/index.d.ts +16 -0
  41. package/dist/index.js +23 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/objects/base.d.ts +9 -0
  44. package/dist/objects/base.js +9 -0
  45. package/dist/objects/base.js.map +1 -0
  46. package/dist/objects/ignores.d.ts +5 -0
  47. package/dist/objects/ignores.js +8 -0
  48. package/dist/objects/ignores.js.map +1 -0
  49. package/dist/objects/onlyWarn.d.ts +9 -0
  50. package/dist/objects/onlyWarn.js +8 -0
  51. package/dist/objects/onlyWarn.js.map +1 -0
  52. package/dist/objects/perfectionist.d.ts +7 -0
  53. package/dist/objects/perfectionist.js +8 -0
  54. package/dist/objects/perfectionist.js.map +1 -0
  55. package/dist/rules/base.d.ts +432 -0
  56. package/dist/rules/base.js +8 -0
  57. package/dist/rules/base.js.map +1 -0
  58. package/dist/rules/typescript.d.ts +121 -0
  59. package/dist/rules/typescript.js +126 -0
  60. package/dist/rules/typescript.js.map +1 -0
  61. package/package.json +43 -32
  62. package/.editorconfig +0 -10
  63. package/.gitattributes +0 -4
  64. package/.prettierrc +0 -6
  65. package/.yarn/sdks/integrations.yml +0 -5
  66. package/.yarn/sdks/prettier/bin/prettier.cjs +0 -32
  67. package/.yarn/sdks/prettier/index.cjs +0 -32
  68. package/.yarn/sdks/prettier/package.json +0 -7
  69. package/.yarnrc.yml +0 -1
  70. package/eslint.config.js +0 -198
@@ -0,0 +1,432 @@
1
+ const baseRules = {
2
+ /**
3
+ * Require return statements in array methods callbacks.
4
+ *
5
+ * 🚫 Not fixable -https://eslint.org/docs/rules/array-callback-return
6
+ */
7
+ "array-callback-return": [
8
+ "error",
9
+ { allowImplicit: true, checkForEach: true },
10
+ ],
11
+ /**
12
+ * Treat `var` statements as if they were block scoped.
13
+ *
14
+ * 🚫 Not fixable - https://eslint.org/docs/rules/block-scoped-var
15
+ */
16
+ "block-scoped-var": "error",
17
+ /**
18
+ * Require camel case names.
19
+ *
20
+ * 🚫 Not fixable - https://eslint.org/docs/rules/camelcase
21
+ */
22
+ camelcase: [
23
+ "error",
24
+ { allow: ["^UNSAFE_"], ignoreDestructuring: false, properties: "never" },
25
+ ],
26
+ /**
27
+ * Require curly braces for multiline blocks.
28
+ *
29
+ * 🔧 Fixable - https://eslint.org/docs/rules/curly
30
+ */
31
+ curly: ["warn", "multi-line"],
32
+ /**
33
+ * Require default clauses in switch statements to be last (if used).
34
+ *
35
+ * 🚫 Not fixable - https://eslint.org/docs/rules/default-case-last
36
+ */
37
+ "default-case-last": "error",
38
+ /**
39
+ * Require triple equals (`===` and `!==`).
40
+ *
41
+ * 🔧 Fixable - https://eslint.org/docs/rules/eqeqeq
42
+ */
43
+ eqeqeq: "error",
44
+ "for-direction": "error",
45
+ /**
46
+ * Require function expressions to have a name.
47
+ *
48
+ * 🚫 Not fixable - https://eslint.org/docs/rules/func-names
49
+ */
50
+ "func-names": ["error", "as-needed"],
51
+ /**
52
+ * Require grouped accessor pairs in object literals and classes.
53
+ *
54
+ * 🚫 Not fixable - https://eslint.org/docs/rules/grouped-accessor-pairs
55
+ */
56
+ "grouped-accessor-pairs": "error",
57
+ /**
58
+ * Require a capital letter for constructors.
59
+ *
60
+ * 🚫 Not fixable - https://eslint.org/docs/rules/new-cap
61
+ */
62
+ "new-cap": ["error", { capIsNew: false }],
63
+ /**
64
+ * Disallow the omission of parentheses when invoking a constructor with
65
+ * no arguments.
66
+ *
67
+ * 🔧 Fixable - https://eslint.org/docs/rules/new-parens
68
+ */
69
+ "new-parens": "warn",
70
+ /**
71
+ * Disallow use of `alert()`.
72
+ *
73
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-alert
74
+ */
75
+ "no-alert": "error",
76
+ "no-async-promise-executor": "error",
77
+ /**
78
+ * Disallow use of bitwise operators.
79
+ *
80
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-bitwise
81
+ */
82
+ "no-bitwise": "error",
83
+ /**
84
+ * Disallow use of `caller`/`callee`.
85
+ *
86
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-caller
87
+ */
88
+ "no-caller": "error",
89
+ "no-case-declarations": "error",
90
+ "no-compare-neg-zero": "error",
91
+ "no-cond-assign": "error",
92
+ /**
93
+ * Disallow the use of console.
94
+ *
95
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-console
96
+ */
97
+ "no-console": ["error", { allow: ["info", "warn", "error"] }],
98
+ /**
99
+ * Disallow expressions where the operation doesn't affect the value.
100
+ *
101
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-console
102
+ */
103
+ "no-constant-binary-expression": "error",
104
+ "no-constant-condition": "error",
105
+ /**
106
+ * Disallow returning value in constructor.
107
+ *
108
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-constructor-return
109
+ */
110
+ "no-constructor-return": "error",
111
+ "no-control-regex": "error",
112
+ "no-debugger": "error",
113
+ "no-delete-var": "error",
114
+ "no-dupe-else-if": "error",
115
+ "no-duplicate-case": "error",
116
+ /**
117
+ * Disallow using an `else` if the `if` block contains a return.
118
+ *
119
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-else-return
120
+ */
121
+ "no-else-return": "warn",
122
+ "no-empty": "error",
123
+ "no-empty-character-class": "error",
124
+ "no-empty-pattern": "error",
125
+ "no-empty-static-block": "error",
126
+ /**
127
+ * Disallow `eval()`.
128
+ *
129
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-eval
130
+ */
131
+ "no-eval": "error",
132
+ "no-ex-assign": "error",
133
+ /**
134
+ * Disallow extending native objects.
135
+ *
136
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-extend-native
137
+ */
138
+ "no-extend-native": "error",
139
+ /**
140
+ * Disallow unnecessary function binding.
141
+ *
142
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-bind
143
+ */
144
+ "no-extra-bind": "error",
145
+ "no-extra-boolean-cast": "error",
146
+ /**
147
+ * Disallow unnecessary labels.
148
+ *
149
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-label
150
+ */
151
+ "no-extra-label": "error",
152
+ "no-fallthrough": "error",
153
+ /**
154
+ * Disallow floating decimals.
155
+ *
156
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-floating-decimal
157
+ */
158
+ "no-floating-decimal": "error",
159
+ "no-global-assign": "error",
160
+ /**
161
+ * Make people convert types explicitly e.g. `Boolean(foo)` instead of `!!foo`.
162
+ *
163
+ * 🔧 Partially Fixable - https://eslint.org/docs/rules/no-implicit-coercion
164
+ */
165
+ "no-implicit-coercion": "error",
166
+ "no-invalid-regexp": "error",
167
+ "no-irregular-whitespace": "error",
168
+ /**
169
+ * Disallow usage of `__iterator__` property.
170
+ *
171
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-iterator
172
+ */
173
+ "no-iterator": "error",
174
+ /**
175
+ * Disallow labels that share a name with a variable.
176
+ *
177
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-label-var
178
+ */
179
+ "no-label-var": "error",
180
+ /**
181
+ * Disallow use of labels for anything other than loops and switches.
182
+ *
183
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-labels
184
+ */
185
+ "no-labels": ["error"],
186
+ /**
187
+ * Disallow unnecessary nested blocks.
188
+ *
189
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-lone-blocks
190
+ */
191
+ "no-lone-blocks": "error",
192
+ /**
193
+ * Disallow if as the only statement in an else block.
194
+ *
195
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-lonely-if
196
+ */
197
+ "no-lonely-if": "warn",
198
+ "no-loss-of-precision": "error",
199
+ "no-misleading-character-class": "error",
200
+ /**
201
+ * Disallow use of chained assignment expressions.
202
+ *
203
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-multi-assign
204
+ */
205
+ "no-multi-assign": ["error"],
206
+ /**
207
+ * Disallow nested ternary expressions.
208
+ *
209
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-nested-ternary
210
+ */
211
+ "no-nested-ternary": "error",
212
+ /**
213
+ * Disallow `new` for side effects.
214
+ *
215
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new
216
+ */
217
+ "no-new": "error",
218
+ /**
219
+ * Disallow function constructors.
220
+ *
221
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-func
222
+ */
223
+ "no-new-func": "error",
224
+ /**
225
+ * Disallow primitive wrapper instances, such as `new String('foo')`.
226
+ *
227
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-wrappers
228
+ */
229
+ "no-new-wrappers": "error",
230
+ "no-nonoctal-decimal-escape": "error",
231
+ "no-octal": "error",
232
+ /**
233
+ * Disallow use of octal escape sequences in string literals.
234
+ *
235
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-octal-escape
236
+ */
237
+ "no-octal-escape": "error",
238
+ /**
239
+ * Disallow reassignment of function parameters.
240
+ *
241
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-param-reassign
242
+ */
243
+ "no-param-reassign": "error",
244
+ /**
245
+ * Disallow returning values from Promise executor functions.
246
+ *
247
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-promise-executor-return
248
+ */
249
+ "no-promise-executor-return": "error",
250
+ /**
251
+ * Disallow usage of the deprecated `__proto__` property.
252
+ *
253
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-proto
254
+ */
255
+ "no-proto": "error",
256
+ "no-prototype-builtins": "error",
257
+ "no-regex-spaces": "error",
258
+ /**
259
+ * Disallow assignment in `return` statement.
260
+ *
261
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-return-assign
262
+ */
263
+ "no-return-assign": "error",
264
+ /**
265
+ * Disallow use of `javascript:` urls.
266
+ *
267
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-script-url
268
+ */
269
+ "no-script-url": "error",
270
+ "no-self-assign": "error",
271
+ /**
272
+ * Disallow comparisons where both sides are exactly the same.
273
+ *
274
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-self-compare
275
+ */
276
+ "no-self-compare": "error",
277
+ /**
278
+ * Disallow use of comma operator.
279
+ *
280
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-sequences
281
+ */
282
+ "no-sequences": "error",
283
+ "no-shadow-restricted-names": "error",
284
+ "no-sparse-arrays": "error",
285
+ /**
286
+ * Disallow template literal placeholder syntax in regular strings, as
287
+ * these are likely errors.
288
+ *
289
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-template-curly-in-string
290
+ */
291
+ "no-template-curly-in-string": "error",
292
+ /**
293
+ * Disallow initializing variables to `undefined`.
294
+ *
295
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-undef-init
296
+ */
297
+ "no-undef-init": "warn",
298
+ "no-unexpected-multiline": "error",
299
+ /**
300
+ * Disallow ternary operators when simpler alternatives exist.
301
+ *
302
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-unneeded-ternary
303
+ */
304
+ "no-unneeded-ternary": "error",
305
+ /**
306
+ * Disallow loops with a body that allows only one iteration.
307
+ *
308
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-unreachable-loop
309
+ */
310
+ "no-unreachable-loop": "error",
311
+ "no-unsafe-finally": "error",
312
+ "no-unsafe-optional-chaining": "error",
313
+ "no-unused-labels": "error",
314
+ "no-unused-private-class-members": "error",
315
+ "no-useless-backreference": "error",
316
+ /**
317
+ * Disallow unnecessary `.call()` and `.apply()`.
318
+ *
319
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-call
320
+ */
321
+ "no-useless-call": "error",
322
+ "no-useless-catch": "error",
323
+ /**
324
+ * Disallow useless computed property keys.
325
+ *
326
+ * � Fixable - https://eslint.org/docs/rules/no-useless-computed-key
327
+ */
328
+ "no-useless-computed-key": "warn",
329
+ /**
330
+ * Disallow unnecessary concatenation of strings.
331
+ *
332
+ * � Not fixable - https://eslint.org/docs/rules/no-useless-concat
333
+ */
334
+ "no-useless-concat": "error",
335
+ "no-useless-escape": "error",
336
+ /**
337
+ * Disallow renaming import, export, and destructured assignments to the
338
+ * same name.
339
+ *
340
+ * � Fixable - https://eslint.org/docs/rules/no-useless-rename
341
+ */
342
+ "no-useless-rename": "warn",
343
+ /**
344
+ * Disallow redundant return statements.
345
+ *
346
+ * � Fixable - https://eslint.org/docs/rules/no-useless-return
347
+ */
348
+ "no-useless-return": "warn",
349
+ /**
350
+ * Require `let` or `const` instead of `var`.
351
+ * ts transpiles let/const to var, so no need for vars any more
352
+ *
353
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-var
354
+ */
355
+ "no-var": "error",
356
+ "no-with": "error",
357
+ /**
358
+ * Require object literal shorthand syntax.
359
+ *
360
+ * 🔧 Fixable - https://eslint.org/docs/rules/object-shorthand
361
+ */
362
+ "object-shorthand": "warn",
363
+ /**
364
+ * Require default to `const` instead of `let`.
365
+ * ts provides better types with const
366
+ *
367
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-const
368
+ */
369
+ "prefer-const": "warn",
370
+ /**
371
+ * Require using named capture groups in regular expressions.
372
+ *
373
+ * � Not fixable - https://eslint.org/docs/rules/prefer-named-capture-group
374
+ */
375
+ "prefer-named-capture-group": "error",
376
+ /**
377
+ * Disallow parseInt() in favor of binary, octal, and hexadecimal literals.
378
+ *
379
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-numeric-literals
380
+ */
381
+ "prefer-numeric-literals": "error",
382
+ /**
383
+ * Require use of an object spread over Object.assign.
384
+ *
385
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-object-spread
386
+ */
387
+ "prefer-object-spread": "warn",
388
+ /**
389
+ * Disallow use of the RegExp constructor in favor of regular expression
390
+ * literals.
391
+ *
392
+ * � Not fixable - https://eslint.org/docs/rules/prefer-regex-literals
393
+ */
394
+ "prefer-regex-literals": "error",
395
+ /**
396
+ * Require using rest parameters instead of `arguments`.
397
+ * ts provides better types with rest args over arguments
398
+ *
399
+ * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-rest-params
400
+ */
401
+ "prefer-rest-params": "error",
402
+ /**
403
+ * Require using spread syntax instead of `.apply()`.
404
+ * ts transpiles spread to apply, so no need for manual apply
405
+ *
406
+ * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-spread
407
+ */
408
+ "prefer-spread": "error",
409
+ /**
410
+ * Require using template literals instead of string concatenation.
411
+ *
412
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-template
413
+ */
414
+ "prefer-template": "warn",
415
+ "require-yield": "error",
416
+ /**
417
+ * Require a `Symbol` description.
418
+ *
419
+ * 🚫 Not fixable - https://eslint.org/docs/rules/symbol-description
420
+ */
421
+ "symbol-description": "error",
422
+ "use-isnan": "error",
423
+ "valid-typeof": "error",
424
+ /**
425
+ * Disallow "Yoda conditions", ensuring the comparison.
426
+ *
427
+ * 🔧 Fixable - https://eslint.org/docs/rules/yoda
428
+ */
429
+ yoda: "warn",
430
+ };
431
+
432
+ export { baseRules };
@@ -0,0 +1,8 @@
1
+ import {
2
+ baseRules
3
+ } from "../chunk-PVI3JF33.js";
4
+ import "../chunk-7D4SUZUM.js";
5
+ export {
6
+ baseRules
7
+ };
8
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,121 @@
1
+ const typescriptRules = {
2
+ "@typescript-eslint/adjacent-overload-signatures": "error",
3
+ "@typescript-eslint/array-type": "error",
4
+ "@typescript-eslint/await-thenable": "error",
5
+ "@typescript-eslint/ban-ts-comment": [
6
+ "error",
7
+ { minimumDescriptionLength: 10 },
8
+ ],
9
+ "@typescript-eslint/ban-tslint-comment": "error",
10
+ "@typescript-eslint/class-literal-property-style": "error",
11
+ "@typescript-eslint/consistent-generic-constructors": "error",
12
+ "@typescript-eslint/consistent-indexed-object-style": "error",
13
+ "@typescript-eslint/consistent-type-assertions": "error",
14
+ "@typescript-eslint/consistent-type-definitions": "error",
15
+ "@typescript-eslint/dot-notation": "error",
16
+ "@typescript-eslint/no-array-constructor": "error",
17
+ "@typescript-eslint/no-array-delete": "error",
18
+ "@typescript-eslint/no-base-to-string": "error",
19
+ "@typescript-eslint/no-confusing-non-null-assertion": "error",
20
+ "@typescript-eslint/no-confusing-void-expression": "error",
21
+ "@typescript-eslint/no-deprecated": "error",
22
+ "@typescript-eslint/no-duplicate-enum-values": "error",
23
+ "@typescript-eslint/no-duplicate-type-constituents": "error",
24
+ "@typescript-eslint/no-dynamic-delete": "error",
25
+ "@typescript-eslint/no-empty-function": "error",
26
+ "@typescript-eslint/no-empty-object-type": "error",
27
+ "@typescript-eslint/no-explicit-any": "error",
28
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
29
+ "@typescript-eslint/no-extraneous-class": "error",
30
+ "@typescript-eslint/no-floating-promises": "error",
31
+ "@typescript-eslint/no-for-in-array": "error",
32
+ "@typescript-eslint/no-implied-eval": "error",
33
+ "@typescript-eslint/no-inferrable-types": "error",
34
+ "@typescript-eslint/no-invalid-void-type": "error",
35
+ "@typescript-eslint/no-meaningless-void-operator": "error",
36
+ "@typescript-eslint/no-misused-new": "error",
37
+ "@typescript-eslint/no-misused-promises": "error",
38
+ "@typescript-eslint/no-mixed-enums": "error",
39
+ "@typescript-eslint/no-namespace": "error",
40
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
41
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
42
+ "@typescript-eslint/no-non-null-assertion": "error",
43
+ "@typescript-eslint/no-redundant-type-constituents": "error",
44
+ "@typescript-eslint/no-require-imports": "error",
45
+ "@typescript-eslint/no-this-alias": "error",
46
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
47
+ "@typescript-eslint/no-unnecessary-condition": "error",
48
+ "@typescript-eslint/no-unnecessary-template-expression": "error",
49
+ "@typescript-eslint/no-unnecessary-type-arguments": "error",
50
+ "@typescript-eslint/no-unnecessary-type-assertion": "error",
51
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
52
+ "@typescript-eslint/no-unnecessary-type-parameters": "error",
53
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
54
+ "@typescript-eslint/no-unsafe-enum-comparison": "error",
55
+ "@typescript-eslint/no-unsafe-function-type": "error",
56
+ "@typescript-eslint/no-unsafe-unary-minus": "error",
57
+ "@typescript-eslint/no-unused-expressions": "error",
58
+ "@typescript-eslint/no-unused-vars": [
59
+ "error",
60
+ {
61
+ args: "after-used",
62
+ argsIgnorePattern: "^_",
63
+ ignoreRestSiblings: false,
64
+ vars: "all",
65
+ varsIgnorePattern: "^_",
66
+ },
67
+ ],
68
+ "@typescript-eslint/no-useless-constructor": "error",
69
+ "@typescript-eslint/no-wrapper-object-types": "error",
70
+ "@typescript-eslint/non-nullable-type-assertion-style": "error",
71
+ "@typescript-eslint/only-throw-error": "error",
72
+ "@typescript-eslint/prefer-as-const": "error",
73
+ "@typescript-eslint/prefer-find": "error",
74
+ "@typescript-eslint/prefer-for-of": "error",
75
+ "@typescript-eslint/prefer-function-type": "error",
76
+ "@typescript-eslint/prefer-includes": "error",
77
+ "@typescript-eslint/prefer-literal-enum-member": "error",
78
+ "@typescript-eslint/prefer-namespace-keyword": "error",
79
+ "@typescript-eslint/prefer-nullish-coalescing": "error",
80
+ "@typescript-eslint/prefer-optional-chain": "error",
81
+ "@typescript-eslint/prefer-promise-reject-errors": "error",
82
+ "@typescript-eslint/prefer-reduce-type-parameter": "error",
83
+ "@typescript-eslint/prefer-regexp-exec": "error",
84
+ "@typescript-eslint/prefer-return-this-type": "error",
85
+ "@typescript-eslint/prefer-string-starts-ends-with": "error",
86
+ "@typescript-eslint/related-getter-setter-pairs": "error",
87
+ "@typescript-eslint/require-await": "error",
88
+ "@typescript-eslint/restrict-plus-operands": [
89
+ "error",
90
+ {
91
+ allowAny: false,
92
+ allowBoolean: false,
93
+ allowNullish: false,
94
+ allowNumberAndString: false,
95
+ allowRegExp: false,
96
+ },
97
+ ],
98
+ "@typescript-eslint/restrict-template-expressions": [
99
+ "error",
100
+ {
101
+ allowAny: false,
102
+ allowBoolean: false,
103
+ allowNever: false,
104
+ allowNullish: false,
105
+ allowNumber: false,
106
+ allowRegExp: false,
107
+ },
108
+ ],
109
+ "@typescript-eslint/return-await": [
110
+ "error",
111
+ "error-handling-correctness-only",
112
+ ],
113
+ "@typescript-eslint/triple-slash-reference": "error",
114
+ "@typescript-eslint/unbound-method": "error",
115
+ "@typescript-eslint/unified-signatures": "error",
116
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
117
+ "dot-notation": "off",
118
+ "no-empty-function": "off",
119
+ };
120
+
121
+ export { typescriptRules };