|
6 | 6 | },
|
7 | 7 | "plugins": [
|
8 | 8 | "simple-import-sort",
|
9 |
| - "import", |
10 | 9 | "@typescript-eslint",
|
11 | 10 | "prettier",
|
12 | 11 | "unused-imports",
|
13 | 12 | "tsdoc",
|
14 |
| - "mocha", |
15 |
| - "github" |
| 13 | + "mocha" |
16 | 14 | ],
|
17 | 15 | "extends": [
|
18 | 16 | "eslint:recommended",
|
|
67 | 65 | ],
|
68 | 66 | "simple-import-sort/imports": "error",
|
69 | 67 | "simple-import-sort/exports": "error",
|
70 |
| - "import/first": "error", |
71 |
| - "import/newline-after-import": "error", |
72 |
| - "import/no-duplicates": "error", |
73 | 68 | "strict": [
|
74 | 69 | "error",
|
75 | 70 | "global"
|
76 | 71 | ],
|
77 | 72 | "@typescript-eslint/no-explicit-any": "off",
|
| 73 | + "@typescript-eslint/no-non-null-assertion": "error", |
| 74 | + "@typescript-eslint/no-redundant-type-constituents": "off", |
| 75 | + "@typescript-eslint/no-empty-function": "error", |
| 76 | + "@typescript-eslint/no-require-imports": "off", |
78 | 77 | "@typescript-eslint/require-await": "off",
|
| 78 | + "@typescript-eslint/no-unused-expressions": "off", |
79 | 79 | "@typescript-eslint/consistent-type-imports": [
|
80 | 80 | "error",
|
81 | 81 | {
|
|
121 | 121 | "message": "Do not strictly check typeof undefined (NOTE: currently this rule only detects the usage of 'undefined' string literal so this could be a misfire)"
|
122 | 122 | }
|
123 | 123 | ],
|
124 |
| - "@typescript-eslint/no-unused-vars": [ |
125 |
| - "error", |
126 |
| - { |
127 |
| - "argsIgnorePattern": "^_" |
128 |
| - } |
129 |
| - ] |
| 124 | + "@typescript-eslint/no-unused-vars": "error" |
130 | 125 | },
|
131 | 126 | "overrides": [
|
132 | 127 | {
|
|
200 | 195 | "no-restricted-syntax": "off",
|
201 | 196 | "typescript-eslint/ban-ts-comment": "off",
|
202 | 197 | "no-restricted-imports": "off",
|
| 198 | + "@typescript-eslint/no-unused-vars": [ |
| 199 | + "error", |
| 200 | + { |
| 201 | + "argsIgnorePattern": "^_", |
| 202 | + "caughtErrorsIgnorePattern": "^_", |
| 203 | + "destructuredArrayIgnorePattern": "^_", |
| 204 | + "varsIgnorePattern": "^_" |
| 205 | + } |
| 206 | + ], |
203 | 207 | "@typescript-eslint/no-restricted-imports": [
|
204 | 208 | "error",
|
205 | 209 | {
|
|
235 | 239 | "@typescript-eslint/restrict-plus-operands": "off",
|
236 | 240 | "@typescript-eslint/restrict-template-expressions": "off",
|
237 | 241 | "@typescript-eslint/require-await": "off",
|
| 242 | + "@typescript-eslint/no-redundant-type-constituents": "off", |
| 243 | + "@typescript-eslint/no-unused-expressions": "off", |
| 244 | + "@typescript-eslint/no-explicit-any": "off", |
238 | 245 | "no-return-await": "off",
|
239 | 246 | "@typescript-eslint/return-await": [
|
240 | 247 | "error",
|
241 | 248 | "always"
|
242 | 249 | ],
|
243 |
| - "github/no-then": "error", |
| 250 | + "@typescript-eslint/no-unused-vars": [ |
| 251 | + "error", |
| 252 | + { |
| 253 | + "argsIgnorePattern": "^_", |
| 254 | + "caughtErrorsIgnorePattern": "^_", |
| 255 | + "destructuredArrayIgnorePattern": "^_", |
| 256 | + "varsIgnorePattern": "^_" |
| 257 | + } |
| 258 | + ], |
244 | 259 | "no-restricted-imports": [
|
245 | 260 | "error",
|
246 | 261 | {
|
|
263 | 278 | "tsdoc/syntax": "warn",
|
264 | 279 | "no-console": "off",
|
265 | 280 | "@typescript-eslint/no-explicit-any": "off",
|
266 |
| - "@typescript-eslint/no-unused-vars": "error", |
| 281 | + "@typescript-eslint/no-unused-vars": "off", |
267 | 282 | "@typescript-eslint/ban-ts-comment": "off",
|
268 | 283 | "@typescript-eslint/no-empty-function": "off"
|
269 | 284 | }
|
|
0 commit comments