-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathtsconfig.lint.json
More file actions
36 lines (36 loc) · 1.38 KB
/
Copy pathtsconfig.lint.json
File metadata and controls
36 lines (36 loc) · 1.38 KB
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
29
30
31
32
33
34
35
36
{
// Parser project for the ROOT eslint config's type-aware rules (#1959), and
// nothing else — it emits nothing and gates nothing.
//
// `@typescript-eslint/no-floating-promises` needs a program containing the
// file being linted, and the root scope (`core/**`, `test-servers/src/**`,
// `vitest.shared.mts`) has no tsconfig of its own: `core/` is typechecked
// through `clients/web`'s `tsc -b` and `test-servers/src` through
// `clients/cli`'s test project, neither of which is rooted here. Type
// *checking* stays where it is; this file only gives the parser a program.
//
// `moduleResolution: bundler` because `core/` is written for a bundler
// (extensionless relative imports) — under NodeNext those fail to resolve,
// every import degrades to `any`, and the rule silently stops seeing
// promises at all.
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"types": ["node"],
"typeRoots": ["./clients/web/node_modules/@types", "./node_modules/@types"]
},
"include": [
"core/**/*.ts",
"core/**/*.tsx",
"test-servers/src/**/*.ts",
"test-servers/src/**/*.tsx",
"test-servers/src/**/*.mts",
"test-servers/src/**/*.cts",
"vitest.shared.mts",
"vitest.setup.shared.mts"
]
}