about summary refs log tree commit diff stats
path: root/tsconfig.json
diff options
context:
space:
mode:
authorAlan Pearce2024-04-07 17:25:56 +0200
committerAlan Pearce2024-04-07 17:25:56 +0200
commit3cc18d65200cfa3f30a621f110292561b823089d (patch)
tree1ac308711f58e27d6322908db442fc3d3bb55c8e /tsconfig.json
parent732e20d9d79c1d4ec3924494b63c97d7a59680e6 (diff)
downloadwebsite-3cc18d65200cfa3f30a621f110292561b823089d.tar.lz
website-3cc18d65200cfa3f30a621f110292561b823089d.tar.zst
website-3cc18d65200cfa3f30a621f110292561b823089d.zip
ts: use Bun's recommended tsconfig
Diffstat (limited to 'tsconfig.json')
-rw-r--r--tsconfig.json28
1 files changed, 17 insertions, 11 deletions
diff --git a/tsconfig.json b/tsconfig.json
index c0eaa53..fdcb3f0 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,22 +1,28 @@
 {
   "compilerOptions": {
-    "lib": ["ES2017", "ES2019", "ESNext"],
     "tsBuildInfoFile": ".cache/tsconfig.tsbuildinfo",
-    "module": "esnext",
-    "target": "esnext",
-    "moduleResolution": "bundler",
+
+    // Enable latest features
+    "lib": ["ESNext"],
+    "target": "ESNext",
+    "module": "ESNext",
     "moduleDetection": "force",
+
+    // Bundler mode
+    "moduleResolution": "bundler",
     "allowImportingTsExtensions": true,
+    "verbatimModuleSyntax": true,
     "noEmit": true,
-    "composite": true,
+
+    // Best practices
     "strict": true,
-    "downlevelIteration": true,
     "skipLibCheck": true,
-    "jsx": "preserve",
-    "allowSyntheticDefaultImports": true,
-    "forceConsistentCasingInFileNames": true,
-    "allowJs": true,
-    "noImplicitAny": true,
+    "noFallthroughCasesInSwitch": true,
+
+    // Some stricter flags
+    "noUnusedLocals": true,
+    "noUnusedParameters": true,
+    "noPropertyAccessFromIndexSignature": true,
     "paths": {
       "toml-matter": ["./node_modules/toml-matter"]
     },