Skip to content

Commit af7cfad

Browse files
committed
update docs to include info about multiple configs
1 parent 52159fa commit af7cfad

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@ Add the following to your `.eslintrc` config:
3737
// use <root>/path/to/folder/tsconfig.json
3838
"typescript": {
3939
"directory": "./path/to/folder"
40+
},
41+
42+
// Multiple tsconfigs (Useful for monorepos)
43+
44+
// use a glob pattern
45+
"typescript": {
46+
"directory": "./packages/**/tsconfig.json"
47+
},
48+
49+
// use an array
50+
"typescript": {
51+
"directory": [
52+
"./packages/module-a/tsconfig.json",
53+
"./packages/module-b/tsconfig.json"
54+
]
55+
},
56+
57+
// use an array of glob patterns
58+
"typescript": {
59+
"directory": [
60+
"./packages/**/tsconfig.json",
61+
"./other-packages/**/tsconfig.json"
62+
]
4063
}
4164
}
4265
}

0 commit comments

Comments
 (0)