diff options
author | Michael Hunteman <michael@huntm.net> | 2024-04-26 11:51:49 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-04-26 11:51:49 -0700 |
commit | c67f9987cad34ec1a0a03e72326173d23e3f4360 (patch) | |
tree | e785366406fff94d57d17c9a45668b7810b74de9 /tsconfig.json | |
parent | fc07a039bb79cc7647b7ba7edee46e4f019093e0 (diff) |
Use bun
Diffstat (limited to 'tsconfig.json')
-rw-r--r-- | tsconfig.json | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/tsconfig.json b/tsconfig.json index a7fc6fb..960b5a6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,25 +1,28 @@ { "compilerOptions": { - "target": "ES2020", - "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + // Enable latest features + "lib": ["ESNext"], + "target": "ESNext", "module": "ESNext", - "skipLibCheck": true, + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, - /* Bundler mode */ + // Bundler mode "moduleResolution": "bundler", "allowImportingTsExtensions": true, - "resolveJsonModule": true, - "isolatedModules": true, + "verbatimModuleSyntax": true, "noEmit": true, - "jsx": "react-jsx", - /* Linting */ + // Best practices "strict": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + + // Some stricter flags "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "noPropertyAccessFromIndexSignature": true }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["vite.config.ts"] } |