File tree 1 file changed +11
-18
lines changed
1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -62,33 +62,26 @@ Add the following to your `.eslintrc` config:
62
62
" @typescript-eslint/parser" : [" .ts" , " .tsx" ]
63
63
},
64
64
" import/resolver" : {
65
- // use <root>/tsconfig.json
66
65
" typescript" : {
67
- " alwaysTryTypes" : true // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
68
- },
66
+ " alwaysTryTypes" : true , // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
69
67
70
- // use <root>/path/to/folder/tsconfig.json
71
- " typescript" : {
72
- " project" : " path/to/folder"
73
- },
68
+ // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
74
69
75
- // Multiple tsconfigs (Useful for monorepos)
70
+ // use <root>/path/to/folder/tsconfig.json
71
+ " project" : " path/to/folder" ,
76
72
77
- // use a glob pattern
78
- " typescript" : {
79
- " project" : " packages/*/tsconfig.json"
80
- },
73
+ // Multiple tsconfigs (Useful for monorepos)
81
74
82
- // use an array
83
- " typescript" : {
75
+ // use a glob pattern
76
+ " project" : " packages/*/tsconfig.json" ,
77
+
78
+ // use an array
84
79
" project" : [
85
80
" packages/module-a/tsconfig.json" ,
86
81
" packages/module-b/tsconfig.json"
87
- ]
88
- },
82
+ ],
89
83
90
- // use an array of glob patterns
91
- " typescript" : {
84
+ // use an array of glob patterns
92
85
" project" : [
93
86
" packages/*/tsconfig.json" ,
94
87
" other-packages/*/tsconfig.json"
You can’t perform that action at this time.
0 commit comments