Skip to content

Commit fa71ce2

Browse files
committed
chore: improve base tsconfig.json
1 parent 7d6113d commit fa71ce2

File tree

1 file changed

+38
-12
lines changed

1 file changed

+38
-12
lines changed

tsconfig.json

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,47 @@
11
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
23
"compilerOptions": {
3-
"target": "esnext",
4+
"composite": true,
5+
"allowImportingTsExtensions": false,
6+
"declaration": true,
7+
"declarationMap": true,
8+
"isolatedDeclarations": false,
9+
"emitDeclarationOnly": true,
10+
"esModuleInterop": true,
11+
"isolatedModules": true,
412
"jsx": "react-jsx",
5-
"lib": ["es2023"],
6-
"moduleDetection": "force",
13+
"target": "ESNext",
714
"module": "preserve",
8-
"moduleResolution": "bundler",
15+
"moduleDetection": "force",
916
"resolveJsonModule": true,
10-
"types": ["node"],
17+
"skipLibCheck": true,
1118
"strict": true,
1219
"noUnusedLocals": true,
13-
"declaration": true,
14-
"emitDeclarationOnly": true,
15-
"esModuleInterop": true,
16-
"isolatedModules": true,
17-
"verbatimModuleSyntax": true,
18-
"skipLibCheck": true
20+
"noUnusedParameters": true,
21+
"erasableSyntaxOnly": true,
22+
"forceConsistentCasingInFileNames": true,
23+
"noFallthroughCasesInSwitch": true,
24+
"noUncheckedSideEffectImports": true,
25+
"useDefineForClassFields": true,
26+
"verbatimModuleSyntax": true
1927
},
20-
"include": ["src"]
28+
"files": [],
29+
"references": [
30+
{
31+
"path": "./playground/tsconfig.app.json"
32+
},
33+
{
34+
"path": "./playground/tsconfig.node.json"
35+
},
36+
{
37+
"path": "./tsconfig.lib.json"
38+
},
39+
{
40+
"path": "./tsconfig.node.json"
41+
},
42+
{
43+
"path": "./tsconfig.test.json"
44+
}
45+
],
46+
2147
}

0 commit comments

Comments
 (0)