diff options
author | Alan Pearce | 2024-04-07 17:25:56 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-07 17:25:56 +0200 |
commit | 3cc18d65200cfa3f30a621f110292561b823089d (patch) | |
tree | 1ac308711f58e27d6322908db442fc3d3bb55c8e | |
parent | 732e20d9d79c1d4ec3924494b63c97d7a59680e6 (diff) | |
download | website-3cc18d65200cfa3f30a621f110292561b823089d.tar.lz website-3cc18d65200cfa3f30a621f110292561b823089d.tar.zst website-3cc18d65200cfa3f30a621f110292561b823089d.zip |
ts: use Bun's recommended tsconfig
-rw-r--r-- | tsconfig.json | 28 |
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"] }, |