Skip to content

Commit

Permalink
Improve TS Configuration
Browse files Browse the repository at this point in the history
Add the following configuration

- strictFunctionTypes
- strictPropertyInitialization
  • Loading branch information
widoz committed May 2, 2024
1 parent 1a899c8 commit 4ddca14
Showing 1 changed file with 40 additions and 30 deletions.
70 changes: 40 additions & 30 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
{
"compilerOptions": {
"target": "ES2022",
"alwaysStrict": true,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"strictNullChecks": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"useUnknownInCatchVariables": true,
"resolveJsonModule": true,
"sourceMap": true,
"jsx": "react",
"skipLibCheck": true,
"esModuleInterop": true,
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "Node10",
"paths": {
"@types": ["./@types/index.d.ts"]
}
},
"include": ["@types", "sources/client/**/*", "tests/client/**/*"],
"exclude": ["node_modules"]
"compilerOptions": {
"target": "ES2022",
"alwaysStrict": true,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"useUnknownInCatchVariables": true,
"resolveJsonModule": true,
"sourceMap": true,
"jsx": "react",
"skipLibCheck": true,
"esModuleInterop": true,
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "Node10",
"paths": {
"@types": [
"./@types/index.d.ts"
]
}
},
"include": [
"@types",
"sources/client/**/*",
"tests/client/**/*"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 4ddca14

Please sign in to comment.