diff options
Diffstat (limited to 'tsconfig.json')
| -rw-r--r-- | tsconfig.json | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..1a5456af --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,31 @@ +{ + "compilerOptions": { + // Enable latest features + "lib": ["ESNext"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, + "moduleResolution": "nodenext", + "allowImportingTsExtensions": true, + + // Best practices + "strict": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + + + // Some stricter flags + "noUnusedLocals": true, + "noUnusedParameters": true, + "noPropertyAccessFromIndexSignature": true, + + "baseUrl": ".", + "paths": { + "$lib/*": ["./lib/*.ts"], + "$routes/*": ["./routes/*.ts"], + "$config": ["./config.ts"] + } + } +} |
