forked from Lichtblick-Suite/lichtblick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.eslint.json
28 lines (28 loc) · 1.26 KB
/
tsconfig.eslint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// tsconfig.json for eslint
//
// Because the typescript-eslint plugin does not receive information from eslint about the overall
// set of files to be linted, it's forced to hold all TypeScript projects in memory at once. Since
// our monorepo contains several separate projects, we run into memory limits when running eslint on
// all the projects in a single run.
//
// Making eslint use just a single tsconfig means it doesn't need to hold as much in memory. This
// works as long as our packages' tsconfigs don't vary much beyond the base config.
//
// Another alternative would be to run eslint separately on each project's files. This would be a
// bit trickier to maintain since it requires a script to make multiple eslint runs, and possibly a
// separate eslintrc file for each project to point it at the appropriate tsconfig (although it's
// not clear this part is necessary).
//
// More detailed discussion at:
// https://github.com/typescript-eslint/typescript-eslint/issues/1192#issuecomment-846491212
{
"extends": "@foxglove/tsconfig/base",
"include": ["**/*", "**/.storybook/**/*"],
"compilerOptions": {
"jsx": "react-jsx",
"lib": ["dom", "dom.iterable", "es2020"],
"paths": {
"@foxglove/studio-base/*": ["./packages/studio-base/src/*"]
}
}
}