Skip to content

Commit f4d54b7

Browse files
committed
updated config file
1 parent 1aa77d0 commit f4d54b7

File tree

2 files changed

+37
-20
lines changed

2 files changed

+37
-20
lines changed

tsconfig.json

+24-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
{
22
"compilerOptions": {
3-
// Enable latest features
4-
"lib": ["ESNext", "DOM"],
5-
"target": "ESNext",
6-
"module": "ESNext",
7-
"moduleDetection": "force",
8-
"jsx": "react-jsx",
9-
"allowJs": true,
10-
11-
// Bundler mode
3+
"outDir": "./dist",
4+
"rootDir": "./src",
5+
"baseUrl": "./",
6+
"paths": {
7+
"@/*": ["src/*"]
8+
},
9+
"lib": ["ESNext"],
10+
"module": "esnext",
11+
"target": "esnext",
1212
"moduleResolution": "bundler",
13+
"moduleDetection": "force",
1314
"allowImportingTsExtensions": true,
14-
"verbatimModuleSyntax": true,
1515
"noEmit": true,
16-
17-
// Best practices
16+
"composite": true,
1817
"strict": true,
18+
"downlevelIteration": true,
1919
"skipLibCheck": true,
20-
"noFallthroughCasesInSwitch": true,
21-
22-
// Some stricter flags (disabled by default)
23-
"noUnusedLocals": false,
24-
"noUnusedParameters": false,
25-
"noPropertyAccessFromIndexSignature": false
26-
}
27-
}
20+
"jsx": "react-jsx",
21+
"allowSyntheticDefaultImports": true,
22+
"forceConsistentCasingInFileNames": true,
23+
"allowJs": true,
24+
"types": [
25+
"bun-types"
26+
]
27+
},
28+
"include": [
29+
"src/**/*.ts"
30+
]
31+
}

tsconfig.types.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"emitDeclarationOnly": true,
6+
"declaration": true,
7+
"outDir": "./dist",
8+
"rootDir": "./src",
9+
},
10+
"include": [
11+
"src/**/*.ts"
12+
]
13+
}

0 commit comments

Comments
 (0)