Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
executable file
·53 lines (53 loc) · 2.02 KB
/
Copy pathtsconfig.json
File metadata and controls
executable file
·53 lines (53 loc) · 2.02 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"compilerOptions": {
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
// Not implied by strict, and both are aimed at this tree. The first types
// every index access as possibly undefined, which is what the dataset
// parser, the page slice and the column lookups all do. The second stops an
// optional property being written as an explicit undefined, so an absent
// value and a present undefined stay distinguishable.
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
// Imports and exports are emitted as written rather than elided by
// inference, so a type-only import has to say so. The convention was
// already followed everywhere, which is why this turns on against a clean
// tree; the flag is what stops it lapsing silently.
"verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
// Was "node", which is node10 resolution and ignores the exports field. The
// bundler package ships neither a main nor a types field and is reachable
// only through its exports map, so the compiler could not find the
// declarations for the programmatic build entry point that the bundle guard
// imports. This value is the resolution the bundler itself performs.
"moduleResolution": "bundler",
// Resolves the package specifier to src/, so typechecking needs no lib/.
"customConditions": ["@yart/source"],
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"allowImportingTsExtensions": true,
"jsx": "react-jsx"
},
"include": [
"src",
"e2e",
"bench",
"vitest.setup.ts",
"vite.config.ts",
"vite.lib.config.ts",
"vite.shared.ts",
"vitest.stryker.config.ts",
"playwright.config.ts",
"eslint.config.js",
"stryker.conf.js",
"scripts"
]
}