|
1 | 1 | { |
| 2 | + "root": true, |
2 | 3 | "parser": "@typescript-eslint/parser", |
3 | 4 | "extends": [ |
4 | 5 | "airbnb-base", |
5 | | - "plugin:jest/recommended", |
6 | 6 | "plugin:@typescript-eslint/eslint-recommended", |
7 | 7 | "plugin:@typescript-eslint/recommended", |
8 | 8 | "prettier" |
|
11 | 11 | "ecmaVersion": 2018, |
12 | 12 | "project": ["./**/tsconfig.json", "./**/tsconfig.test.json"] |
13 | 13 | }, |
| 14 | + "ignorePatterns": ["coverage/", "lib/"], |
14 | 15 | "rules": { |
15 | 16 | "import/extensions": [ |
16 | 17 | "error", |
17 | 18 | { |
18 | 19 | "ts": "never" |
19 | 20 | } |
20 | 21 | ], |
21 | | - "import/no-cycle": "off", |
22 | | - "import/no-extraneous-dependencies": [ |
23 | | - "error", |
24 | | - { |
25 | | - "devDependencies": ["**/*.spec.{js,ts}", "**/*.config.js"] |
26 | | - } |
27 | | - ], |
28 | | - "import/no-unresolved": [ |
29 | | - "error", |
30 | | - { |
31 | | - "ignore": [ |
32 | | - "history", |
33 | | - "lodash", |
34 | | - // Workaround for alexgorbatchev/eslint-import-resolver-typescript#17 |
35 | | - "regexp-tree/ast", |
36 | | - "RegexColorizer" |
37 | | - ] |
38 | | - } |
39 | | - ], |
40 | 22 | "import/prefer-default-export": "off", |
41 | | - "no-else-return": "off", |
42 | 23 | "no-plusplus": "off", |
43 | | - // This rule excludes too many escape sequences we need, like \p |
44 | | - "no-useless-escape": "off", |
45 | 24 | // Allow ForOfStatement, preserve the rest of Airbnb's restrictions |
46 | 25 | "no-restricted-syntax": [ |
47 | 26 | "error", |
48 | 27 | "ForInStatement", |
49 | 28 | "LabeledStatement", |
50 | 29 | "WithStatement" |
51 | | - ], |
52 | | - "@typescript-eslint/explicit-function-return-type": "off", |
53 | | - "@typescript-eslint/explicit-module-boundary-types": "off" |
| 30 | + ] |
54 | 31 | }, |
| 32 | + "reportUnusedDisableDirectives": true, |
55 | 33 | "settings": { |
56 | 34 | "import/parsers": { |
57 | 35 | "@typescript-eslint/parser": [".ts"] |
|
0 commit comments