|
7 | 7 | }, |
8 | 8 | "plugins": ["typescript", "unicorn", "oxc", "import", "node", "promise"], |
9 | 9 | "rules": { |
10 | | - "no-unused-vars": [ |
11 | | - "error", |
12 | | - { |
13 | | - "argsIgnorePattern": "^(_|e|event)", |
14 | | - "caughtErrorsIgnorePattern": "^(_|e|error)", |
15 | | - "varsIgnorePattern": "^_" |
16 | | - } |
17 | | - ], |
| 10 | + // disabled rules |
18 | 11 | "no-await-in-loop": "off", |
19 | 12 | "consistent-function-scoping": "off", |
20 | 13 | "prefer-add-event-listener": "off", |
|
23 | 16 | "no-useless-spread": "off", |
24 | 17 | "no-async-endpoint-handlers": "off", |
25 | 18 | "no-this-alias": "off", |
26 | | - "no-var": "error", |
27 | 19 | "no-unassigned-import": "off", |
| 20 | + "no-array-reverse": "off", // disabled for compatibility |
| 21 | + |
| 22 | + // enabled rules |
| 23 | + "no-unused-vars": [ |
| 24 | + "error", |
| 25 | + { |
| 26 | + "argsIgnorePattern": "^(_|e|event)", |
| 27 | + "caughtErrorsIgnorePattern": "^(_|e|error)", |
| 28 | + "varsIgnorePattern": "^_" |
| 29 | + } |
| 30 | + ], |
| 31 | + "no-var": "error", |
28 | 32 | "no-non-null-assertion": "error", |
29 | 33 | "no-non-null-asserted-nullish-coalescing": "error", |
30 | 34 | "no-explicit-any": "error", |
|
92 | 96 | } |
93 | 97 | ], |
94 | 98 |
|
95 | | - "todo": "off", |
| 99 | + // todo: enable |
96 | 100 | "no-array-for-each": "off", |
97 | 101 |
|
98 | | - "consider": "off", |
| 102 | + // consider these for the future |
99 | 103 | "no-cycle": "off", |
100 | 104 | "no-nested-ternary": "off" |
101 | 105 | } |
|
0 commit comments