-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtsconfig.json
More file actions
57 lines (47 loc) · 1.48 KB
/
tsconfig.json
File metadata and controls
57 lines (47 loc) · 1.48 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
54
55
56
57
{
"include": [
"etc",
"src",
".storybook/*.ts",
"eslint.config.js",
"prettier.config.js",
"vite.config.ts",
"rslib.config.ts"
],
"extends": [
"./node_modules/@tsconfig/strictest/tsconfig.json",
"./node_modules/@tsconfig/node24/tsconfig.json"
],
"compilerOptions": {
"rootDir": ".",
"module": "esnext",
"moduleResolution": "bundler",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext",
// Add for ServiceWorker support
"WebWorker"
],
"types": ["node", "vitest/globals"],
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
// This option can help you avoid using certain syntax that cannot be correctly compiled by SWC and Babel, see:
// https://rsbuild.dev/guide/basic/typescript#isolatedmodules
"isolatedModules": true,
// Strips all comments from TypeScript files when converting into JavaScript,
// you rarely read compiled code so this saves space
"removeComments": true,
"noEmit": true,
// This to speed up CI and avoid external type issues
"skipLibCheck": true,
// Keep supporting side-effect style imports without declaration files
"noUncheckedSideEffectImports": false,
// So that eslint and prettier written in JS can be included
"allowJs": true,
// TODO Remove these exceptions and fix more errors one day
"noImplicitAny": false,
"noPropertyAccessFromIndexSignature": false
}
}