From 3cc18d65200cfa3f30a621f110292561b823089d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 7 Apr 2024 17:25:56 +0200 Subject: ts: use Bun's recommended tsconfig --- tsconfig.json | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'tsconfig.json') 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"] }, -- cgit 1.4.1