Skip to content

Commit 2029cae

Browse files
authored
docs: clarify example in README (import-js#63)
1 parent 15f2849 commit 2029cae

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

README.md

+11-18
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,26 @@ Add the following to your `.eslintrc` config:
6262
"@typescript-eslint/parser": [".ts", ".tsx"]
6363
},
6464
"import/resolver": {
65-
// use <root>/tsconfig.json
6665
"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`
6967

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
7469

75-
// Multiple tsconfigs (Useful for monorepos)
70+
// use <root>/path/to/folder/tsconfig.json
71+
"project": "path/to/folder",
7672

77-
// use a glob pattern
78-
"typescript": {
79-
"project": "packages/*/tsconfig.json"
80-
},
73+
// Multiple tsconfigs (Useful for monorepos)
8174

82-
// use an array
83-
"typescript": {
75+
// use a glob pattern
76+
"project": "packages/*/tsconfig.json",
77+
78+
// use an array
8479
"project": [
8580
"packages/module-a/tsconfig.json",
8681
"packages/module-b/tsconfig.json"
87-
]
88-
},
82+
],
8983

90-
// use an array of glob patterns
91-
"typescript": {
84+
// use an array of glob patterns
9285
"project": [
9386
"packages/*/tsconfig.json",
9487
"other-packages/*/tsconfig.json"

0 commit comments

Comments
 (0)