|
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", |
14 | | - "prettier/@typescript-eslint" |
15 | | - ], |
16 | | - rules: { |
17 | | - "@typescript-eslint/ban-types": [ |
18 | | - "error", { |
19 | | - types: { |
20 | | - "object": false |
21 | | - }, |
22 | | - extendDefaults: true |
23 | | - } |
24 | | - ], |
25 | | - "@typescript-eslint/no-explicit-any": 0, |
26 | | - "@typescript-eslint/no-non-null-assertion": 0, |
27 | | - "@typescript-eslint/no-unsafe-assignment": 0, |
28 | | - "@typescript-eslint/no-unsafe-call": 0, |
29 | | - "@typescript-eslint/no-unsafe-member-access": 0, |
30 | | - "@typescript-eslint/no-unsafe-return": 0, |
31 | | - "@typescript-eslint/no-unused-vars": [ |
32 | | - "error", { |
33 | | - "argsIgnorePattern": "^_" |
34 | | - } |
35 | | - ], |
36 | | - "@typescript-eslint/no-misused-promises": [ |
37 | | - "error", { |
38 | | - "checksVoidReturn": false |
39 | | - } |
40 | | - ] |
41 | | - } |
| 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" |
| 14 | + ], |
| 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-argument": 0, |
| 27 | + "@typescript-eslint/no-unsafe-assignment": 0, |
| 28 | + "@typescript-eslint/no-unsafe-call": 0, |
| 29 | + "@typescript-eslint/no-unsafe-member-access": 0, |
| 30 | + "@typescript-eslint/no-unsafe-return": 0, |
| 31 | + "@typescript-eslint/no-unused-vars": [ |
| 32 | + "error", { |
| 33 | + "argsIgnorePattern": "^_", |
| 34 | + "varsIgnorePattern": "^_" |
| 35 | + } |
| 36 | + ], |
| 37 | + "@typescript-eslint/no-misused-promises": [ |
| 38 | + "error", { |
| 39 | + "checksVoidReturn": false |
| 40 | + } |
| 41 | + ] |
| 42 | + } |
42 | 43 | }; |
0 commit comments