|
1 | 1 | module.exports = { |
2 | | - root: true, |
3 | | - parser: "@typescript-eslint/parser", |
4 | | - parserOptions: { |
5 | | - tsconfigRootDir: __dirname, |
6 | | - project: ["./tsconfig.json"] |
7 | | - }, |
8 | | - plugins: ["@typescript-eslint"], |
9 | | - extends: [ |
10 | | - "eslint:recommended", |
11 | | - "plugin:@typescript-eslint/recommended", |
12 | | - "plugin:@typescript-eslint/recommended-requiring-type-checking", |
13 | | - "prettier" |
| 2 | + root: true, |
| 3 | + parser: "@typescript-eslint/parser", |
| 4 | + parserOptions: { |
| 5 | + tsconfigRootDir: __dirname, |
| 6 | + project: ["./tsconfig.json"] |
| 7 | + }, |
| 8 | + plugins: ["@typescript-eslint"], |
| 9 | + extends: [ |
| 10 | + "eslint:recommended", |
| 11 | + "plugin:@typescript-eslint/recommended", |
| 12 | + "plugin:@typescript-eslint/recommended-type-checked", |
| 13 | + "plugin:@typescript-eslint/strict", |
| 14 | + "plugin:@typescript-eslint/strict-type-checked", |
| 15 | + "plugin:@typescript-eslint/stylistic", |
| 16 | + "plugin:@typescript-eslint/stylistic-type-checked", |
| 17 | + "prettier" |
| 18 | + ], |
| 19 | + rules: { |
| 20 | + "@typescript-eslint/no-non-null-assertion": 0, |
| 21 | + "@typescript-eslint/consistent-type-definitions": 0, |
| 22 | + "@typescript-eslint/prefer-nullish-coalescing": 0, |
| 23 | + "@typescript-eslint/no-unused-vars": [ |
| 24 | + "error", { |
| 25 | + "argsIgnorePattern": "^_" |
| 26 | + } |
14 | 27 | ], |
15 | | - rules: { |
16 | | - "@typescript-eslint/ban-types": [ |
17 | | - "error", { |
18 | | - types: { |
19 | | - "object": false |
20 | | - }, |
21 | | - extendDefaults: true |
22 | | - } |
23 | | - ], |
24 | | - "@typescript-eslint/no-explicit-any": 0, |
25 | | - "@typescript-eslint/no-non-null-assertion": 0, |
26 | | - "@typescript-eslint/no-unsafe-assignment": 0, |
27 | | - "@typescript-eslint/no-unsafe-call": 0, |
28 | | - "@typescript-eslint/no-unsafe-member-access": 0, |
29 | | - "@typescript-eslint/no-unsafe-return": 0, |
30 | | - "@typescript-eslint/no-unused-vars": [ |
31 | | - "error", { |
32 | | - "argsIgnorePattern": "^_" |
33 | | - } |
34 | | - ] |
35 | | - } |
| 28 | + "@typescript-eslint/strict-boolean-expressions": [ |
| 29 | + "error", { |
| 30 | + "allowNullableBoolean": true |
| 31 | + } |
| 32 | + ], |
| 33 | + } |
36 | 34 | }; |
0 commit comments