|
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 | {
|
|
168 | 163 | "@typescript-eslint/no-empty-function": "off",
|
169 | 164 | "@typescript-eslint/no-this-alias": "off",
|
170 | 165 | "@typescript-eslint/no-unused-vars": "off",
|
| 166 | + "@typescript-eslint/consistent-type-imports": "off", |
171 | 167 | // Since we use ts-node we should always require the TS code
|
172 | 168 | // Also we have patches to apply to the mock server, so we should always import from there
|
173 | 169 | "no-restricted-modules": [
|
|
200 | 196 | "no-restricted-syntax": "off",
|
201 | 197 | "typescript-eslint/ban-ts-comment": "off",
|
202 | 198 | "no-restricted-imports": "off",
|
| 199 | + "@typescript-eslint/no-unused-vars": [ |
| 200 | + "error", |
| 201 | + { |
| 202 | + "argsIgnorePattern": "^_", |
| 203 | + "caughtErrorsIgnorePattern": "^_", |
| 204 | + "destructuredArrayIgnorePattern": "^_", |
| 205 | + "varsIgnorePattern": "^_" |
| 206 | + } |
| 207 | + ], |
203 | 208 | "@typescript-eslint/no-restricted-imports": [
|
204 | 209 | "error",
|
205 | 210 | {
|
|
235 | 240 | "@typescript-eslint/restrict-plus-operands": "off",
|
236 | 241 | "@typescript-eslint/restrict-template-expressions": "off",
|
237 | 242 | "@typescript-eslint/require-await": "off",
|
| 243 | + "@typescript-eslint/no-redundant-type-constituents": "off", |
| 244 | + "@typescript-eslint/no-unused-expressions": "off", |
| 245 | + "@typescript-eslint/no-explicit-any": "off", |
238 | 246 | "no-return-await": "off",
|
239 | 247 | "@typescript-eslint/return-await": [
|
240 | 248 | "error",
|
241 | 249 | "always"
|
242 | 250 | ],
|
243 |
| - "github/no-then": "error", |
| 251 | + "@typescript-eslint/no-unused-vars": [ |
| 252 | + "error", |
| 253 | + { |
| 254 | + "argsIgnorePattern": "^_", |
| 255 | + "caughtErrorsIgnorePattern": "^_", |
| 256 | + "destructuredArrayIgnorePattern": "^_", |
| 257 | + "varsIgnorePattern": "^_" |
| 258 | + } |
| 259 | + ], |
244 | 260 | "no-restricted-imports": [
|
245 | 261 | "error",
|
246 | 262 | {
|
|
263 | 279 | "tsdoc/syntax": "warn",
|
264 | 280 | "no-console": "off",
|
265 | 281 | "@typescript-eslint/no-explicit-any": "off",
|
266 |
| - "@typescript-eslint/no-unused-vars": "error", |
| 282 | + "@typescript-eslint/no-unused-vars": "off", |
267 | 283 | "@typescript-eslint/ban-ts-comment": "off",
|
268 | 284 | "@typescript-eslint/no-empty-function": "off"
|
269 | 285 | }
|
|
276 | 292 | ],
|
277 | 293 | "parser": "@typescript-eslint/parser",
|
278 | 294 | "rules": {
|
279 |
| - "unused-imports/no-unused-imports": "error" |
| 295 | + "unused-imports/no-unused-imports": "error", |
| 296 | + "@typescript-eslint/no-empty-object-type": "off", |
| 297 | + "@typescript-eslint/no-unsafe-declaration-merging": "off" |
280 | 298 | }
|
281 | 299 | }
|
282 | 300 | ]
|
|
0 commit comments