chore: Move to Typescript (#2783)
This PR moves the entire project to Typescript. Due to the ~1000 ignores this will lead to a messy codebase for a while, but the churn is worth it – all of those ignore comments are places that were never type-safe previously. closes #1282
This commit is contained in:
35
tsconfig.json
Normal file
35
tsconfig.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"alwaysStrict": true,
|
||||
"esModuleInterop": true,
|
||||
"experimentalDecorators": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"isolatedModules": true,
|
||||
"baseUrl": ".",
|
||||
"jsx": "react",
|
||||
"lib": ["dom", "es2020", "dom.iterable", "esnext.asynciterable"],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitOverride": false,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitThis": false,
|
||||
"sourceMap": true,
|
||||
"resolveJsonModule": true,
|
||||
"strictNullChecks": true,
|
||||
"noEmit": true,
|
||||
"suppressImplicitAnyIndexErrors": true,
|
||||
"target": "es2020",
|
||||
"paths": {
|
||||
"@server/*": ["./server/*"],
|
||||
"@shared/*": ["./shared/*"],
|
||||
"~/*": ["./app/*"]
|
||||
}
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"build",
|
||||
"server/migrations"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user