all repos — website @ 3cc18d65200cfa3f30a621f110292561b823089d

My website

ts: use Bun's recommended tsconfig

Alan Pearce
commit

3cc18d65200cfa3f30a621f110292561b823089d

parent

732e20d9d79c1d4ec3924494b63c97d7a59680e6

1 file changed, 17 insertions(+), 11 deletions(-)

changed files
M tsconfig.jsontsconfig.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"] },