-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.base.json
66 lines (61 loc) · 1.89 KB
/
tsconfig.base.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
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
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"compilerOptions": {
"module": "ESNext",
"target": "ES2022", // target handled by Vite via ESBuild via browserslist-to-esbuild
"lib": ["ES2022", "DOM", "DOM.Iterable"],
/* Bundler Mode */
"moduleResolution": "bundler",
"noEmit": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
/**
For bundlers like vite. Setting the isolatedModules flag tells TypeScript to warn you if you write certain code that can’t be correctly interpreted by a single-file transpilation process.
*/
"isolatedModules": true,
/**
Enforce using `import type` instead of `import` for Types.
*/
"verbatimModuleSyntax": true,
/* For Vite */
// "types": ["vite/client"], // defined in types/vite.d.ts
// "typeRoots": [""],
"skipLibCheck": true, // enable for temp fix
"useDefineForClassFields": true,
/**
To have warnings/errors at the correct position, enable source maps.
*/
"sourceMap": true,
/* Linting */
"strict": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
/* Enable JavaScript Compilation */
"allowJs": true,
"checkJs": true
},
"include": ["hosting/types/*.d.ts", "**/*.ts", "**/*.mts", "**/*.cts", "**/*.tsx", "**/*.mtsx", "**/*.js", "**/*.mjs", "**/*.cjs", "**/*.jsx", "**/*.mjsx"],
"exclude": [
/* specialized ignore patterns */
"**/*_lintignore*",
"**/*-lintignore*",
"**/*_buildignore*",
"**/*-buildignore*",
/* generated directories */
"**/.yarn/",
"**/node_modules/",
".firebase/",
"**/dist/",
"**/build/",
"**/_build/",
/* generated files */
"*.lock",
"*-lock.*",
"vite.config.mts.timestamp-*.mjs",
/* editor config */
"**/.vscode/",
"**/.idea/"
/* project specific patterns */
]
}