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