about summary refs log tree commit diff stats
path: root/tsconfig.json
diff options
context:
space:
mode:
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"]
     },