summaryrefslogtreecommitdiff
path: root/tsconfig.json
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-04-26 11:51:49 -0700
committerMichael Hunteman <michael@huntm.net>2024-04-26 11:51:49 -0700
commitc67f9987cad34ec1a0a03e72326173d23e3f4360 (patch)
treee785366406fff94d57d17c9a45668b7810b74de9 /tsconfig.json
parentfc07a039bb79cc7647b7ba7edee46e4f019093e0 (diff)
Use bun
Diffstat (limited to 'tsconfig.json')
-rw-r--r--tsconfig.json27
1 files changed, 15 insertions, 12 deletions
diff --git a/tsconfig.json b/tsconfig.json
index a7fc6fb..960b5a6 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,25 +1,28 @@
{
"compilerOptions": {
- "target": "ES2020",
- "useDefineForClassFields": true,
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
+ // Enable latest features
+ "lib": ["ESNext"],
+ "target": "ESNext",
"module": "ESNext",
- "skipLibCheck": true,
+ "moduleDetection": "force",
+ "jsx": "react-jsx",
+ "allowJs": true,
- /* Bundler mode */
+ // Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
- "resolveJsonModule": true,
- "isolatedModules": true,
+ "verbatimModuleSyntax": true,
"noEmit": true,
- "jsx": "react-jsx",
- /* Linting */
+ // Best practices
"strict": true,
+ "skipLibCheck": true,
+ "noFallthroughCasesInSwitch": true,
+
+ // Some stricter flags
"noUnusedLocals": true,
"noUnusedParameters": true,
- "noFallthroughCasesInSwitch": true
+ "noPropertyAccessFromIndexSignature": true
},
- "include": ["src"],
- "references": [{ "path": "./tsconfig.node.json" }]
+ "include": ["vite.config.ts"]
}