|
1 | 1 | {
|
2 |
| - "root": true, |
3 |
| - "parser": "@typescript-eslint/parser", |
4 |
| - "plugins": ["@typescript-eslint", "import", "mocha", "chai-friendly"], |
5 |
| - "extends": [ |
6 |
| - "eslint:recommended", |
7 |
| - "plugin:@typescript-eslint/recommended", |
8 |
| - "airbnb-base", |
9 |
| - "airbnb-typescript/base", |
10 |
| - "prettier" |
11 |
| - ], |
12 |
| - "settings": { |
13 |
| - "import/resolver": { |
14 |
| - "typescript": { |
15 |
| - "project": ["tsconfig.json"] |
16 |
| - } |
17 |
| - } |
18 |
| - }, |
19 |
| - "parserOptions": { |
20 |
| - "ecmaVersion": 2018, |
21 |
| - "sourceType": "module", |
22 |
| - "project": ["tsconfig.json"] |
23 |
| - }, |
24 |
| - "rules": { |
25 |
| - "@typescript-eslint/no-unused-vars": "error", |
26 |
| - "@typescript-eslint/no-explicit-any": "error", |
27 |
| - "@typescript-eslint/no-shadow": "error", |
28 |
| - "@typescript-eslint/explicit-module-boundary-types": "error", |
29 |
| - "@typescript-eslint/no-empty-function": [ |
30 |
| - "error", |
31 |
| - { "allow": ["constructors"] } |
32 |
| - ], |
33 |
| - "import/prefer-default-export": "off", |
34 |
| - "import/no-import-module-exports": "off", |
35 |
| - "no-underscore-dangle": "off", |
36 |
| - "class-methods-use-this": "off" |
37 |
| - }, |
38 |
| - "overrides": [ |
39 |
| - { |
40 |
| - "files": ["**/*.spec.ts", "test/**/*.ts"], |
41 |
| - "env": { |
42 |
| - "mocha": true |
43 |
| - }, |
44 |
| - "extends": ["plugin:mocha/recommended"], |
45 |
| - "rules": { |
46 |
| - "@typescript-eslint/ban-ts-comment": "off", |
47 |
| - "@typescript-eslint/dot-notation": [ |
48 |
| - "error", |
49 |
| - { "allowPattern": "RouteGuide" } |
50 |
| - ], |
51 |
| - "@typescript-eslint/no-explicit-any": "off", |
52 |
| - "@typescript-eslint/no-empty-function": "off", |
53 |
| - "@typescript-eslint/no-unused-expressions": "off", |
54 |
| - "@typescript-eslint/no-unused-vars": [ |
55 |
| - "error", |
56 |
| - { "varsIgnorePattern": "unused" } |
57 |
| - ], |
58 |
| - "chai-friendly/no-unused-expressions": "error", |
59 |
| - "@typescript-eslint/no-var-requires": "off", |
60 |
| - "global-require": "off", |
61 |
| - "import/no-dynamic-require": "off", |
62 |
| - "mocha/no-mocha-arrows": "off", |
63 |
| - "mocha/no-setup-in-describe": "off", |
64 |
| - "no-console": "off", |
65 |
| - "no-new": "off" |
66 |
| - } |
67 |
| - } |
68 |
| - ], |
69 |
| - "globals": { |
70 |
| - "NodeJS": true |
71 |
| - } |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "plugins": ["@typescript-eslint", "import", "mocha", "chai-friendly"], |
| 5 | + "extends": [ |
| 6 | + "eslint:recommended", |
| 7 | + "plugin:@typescript-eslint/recommended", |
| 8 | + "prettier" |
| 9 | + ], |
| 10 | + "settings": { |
| 11 | + "import/resolver": { |
| 12 | + "typescript": { |
| 13 | + "project": ["tsconfig.json"] |
| 14 | + } |
| 15 | + } |
| 16 | + }, |
| 17 | + "parserOptions": { |
| 18 | + "ecmaVersion": 2018, |
| 19 | + "sourceType": "module", |
| 20 | + "project": ["tsconfig.json"] |
| 21 | + }, |
| 22 | + "rules": { |
| 23 | + "@typescript-eslint/no-unused-vars": "error", |
| 24 | + "@typescript-eslint/no-explicit-any": "error", |
| 25 | + "@typescript-eslint/no-shadow": "error", |
| 26 | + "@typescript-eslint/explicit-module-boundary-types": "error", |
| 27 | + "@typescript-eslint/no-empty-function": [ |
| 28 | + "error", |
| 29 | + { "allow": ["constructors"] } |
| 30 | + ], |
| 31 | + "import/prefer-default-export": "off", |
| 32 | + "import/no-import-module-exports": "off", |
| 33 | + "no-underscore-dangle": "off", |
| 34 | + "class-methods-use-this": "off" |
| 35 | + }, |
| 36 | + "overrides": [ |
| 37 | + { |
| 38 | + "files": ["**/*.spec.ts", "test/**/*.ts"], |
| 39 | + "env": { |
| 40 | + "mocha": true |
| 41 | + }, |
| 42 | + "extends": ["plugin:mocha/recommended"], |
| 43 | + "rules": { |
| 44 | + "@typescript-eslint/ban-ts-comment": "off", |
| 45 | + "@typescript-eslint/dot-notation": [ |
| 46 | + "error", |
| 47 | + { "allowPattern": "RouteGuide" } |
| 48 | + ], |
| 49 | + "@typescript-eslint/no-explicit-any": "off", |
| 50 | + "@typescript-eslint/no-empty-function": "off", |
| 51 | + "@typescript-eslint/no-unused-expressions": "off", |
| 52 | + "@typescript-eslint/no-unused-vars": [ |
| 53 | + "error", |
| 54 | + { "varsIgnorePattern": "unused" } |
| 55 | + ], |
| 56 | + "chai-friendly/no-unused-expressions": "error", |
| 57 | + "@typescript-eslint/no-var-requires": "off", |
| 58 | + "global-require": "off", |
| 59 | + "import/no-dynamic-require": "off", |
| 60 | + "mocha/no-mocha-arrows": "off", |
| 61 | + "mocha/no-setup-in-describe": "off", |
| 62 | + "no-console": "off", |
| 63 | + "no-new": "off" |
| 64 | + } |
| 65 | + } |
| 66 | + ], |
| 67 | + "globals": { |
| 68 | + "NodeJS": true |
| 69 | + } |
72 | 70 | }
|
0 commit comments