|
8 | 8 | "BigInt64Array": "readonly",
|
9 | 9 | "BigUInt64Array": "readonly"
|
10 | 10 | },
|
| 11 | + "env": { |
| 12 | + "jest/globals": true |
| 13 | + }, |
11 | 14 |
|
12 |
| - "extends": [ "plugin:jest/recommended", "./node_modules/eslint-config-mdcs/index.js" ], |
13 | 15 | "plugins": [ "jest" ],
|
| 16 | + "extends": [ "eslint:recommended", "plugin:jest/recommended", "./node_modules/eslint-config-mdcs/index.js" ], |
14 | 17 |
|
15 | 18 | "rules": {
|
| 19 | + "no-inner-declarations": "off", |
| 20 | + "padding-line-between-statements": "off", |
| 21 | + "no-constant-condition": "off", |
| 22 | + // "no-constant-condition": [ "error", { "checkLoops": "exceptWhileTrue" } ], |
| 23 | + |
16 | 24 | "no-unused-vars": [ 1, { "args": "none" } ],
|
17 |
| - "no-throw-literal": [ |
18 |
| - "error" |
19 |
| - ], |
20 |
| - "no-const-assign": "error", |
21 |
| - "prefer-const": [ |
22 |
| - "error", |
23 |
| - { |
24 |
| - "destructuring": "any", |
25 |
| - "ignoreReadBeforeAssign": false |
26 |
| - } |
27 |
| - ], |
| 25 | + "no-throw-literal": [ "error" ], |
| 26 | + "prefer-const": [ "error", { "destructuring": "any", "ignoreReadBeforeAssign": false } ], |
28 | 27 | "quotes": [ "error", "single" ]
|
29 |
| - } |
| 28 | + }, |
| 29 | + "overrides": [ |
| 30 | + { |
| 31 | + "files": [ "*.ts" ], |
| 32 | + "parser": "@typescript-eslint/parser", |
| 33 | + "plugins": [ "@typescript-eslint" ], |
| 34 | + "rules": { |
| 35 | + "no-unused-vars": [ "error", { "args": "none" } ], |
| 36 | + "indent": [ 2, 2 ] |
| 37 | + } |
| 38 | + } |
| 39 | + ] |
30 | 40 | }
|
0 commit comments