Created
July 12, 2023 23:41
Strictest TypeScript config posible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
// Resolution (adjust to use case) | |
"target": "ESNext", | |
"module": "CommonJS", | |
"moduleResolution": "Node16", | |
"lib": ["ESNext"], | |
"types": ["node"], | |
// Super strict | |
"strict": true, | |
"allowUnusedLabels": false, | |
"allowUnreachableCode": false, | |
"exactOptionalPropertyTypes": true, | |
"noFallthroughCasesInSwitch": true, | |
"noImplicitOverride": true, | |
"noImplicitReturns": true, | |
"noPropertyAccessFromIndexSignature": true, | |
"noUncheckedIndexedAccess": true, | |
"noUnusedLocals": true, | |
"noUnusedParameters": true, | |
"forceConsistentCasingInFileNames": true, | |
// Misc (Use if dependencies have bad types) | |
"skipLibCheck": true | |
}, | |
"include": ["./src/**/*.ts"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment