|
4 | 4 | "parserOptions": {
|
5 | 5 | "ecmaVersion":6,
|
6 | 6 | "sourceType":"module",
|
7 |
| -"project":"./tsconfig.json" |
| 7 | +"project":true |
8 | 8 | },
|
9 | 9 | "plugins": ["@typescript-eslint","prettier","import"],
|
10 | 10 | "extends": [
|
|
15 | 15 | "plugin:md/prettier",
|
16 | 16 | "prettier"
|
17 | 17 | ],
|
| 18 | +"ignorePatterns": ["out","dist","**/*.d.ts"], |
| 19 | +"settings": { |
| 20 | +"import/resolver": { |
| 21 | +"typescript": {"project":"./tsconfig.json" } |
| 22 | +}, |
| 23 | +"import/internal-regex":"^@/" |
| 24 | +}, |
18 | 25 | "overrides": [
|
| 26 | +{ |
| 27 | +"files": ["test/**/*.{ts,tsx}","**/*.{test,spec}.ts?(x)"], |
| 28 | +"settings": { |
| 29 | +"import/resolver": { |
| 30 | +"typescript": { |
| 31 | +// In tests, resolve using the test tsconfig (has @test/* mapping) |
| 32 | +"project":"test/tsconfig.json" |
| 33 | +} |
| 34 | +} |
| 35 | +} |
| 36 | +}, |
19 | 37 | {
|
20 | 38 | "files": ["*.ts"],
|
21 | 39 | "rules": {
|
|
88 | 106 | }
|
89 | 107 | }
|
90 | 108 | ]
|
91 |
| -}, |
92 |
| -"ignorePatterns": ["out","dist","**/*.d.ts"], |
93 |
| -"settings": { |
94 |
| -"import/resolver": { |
95 |
| -"typescript": {"project":"./tsconfig.json" } |
96 |
| -}, |
97 |
| -"import/internal-regex":"^@/" |
98 | 109 | }
|
99 | 110 | }
|