Globally enable TypeScript strict mode (#679)

- Enables TypeScript strict mode, repo-wide
- Prevents `tsc` from emitting files
- Removes `typescript-strict-plugin` package
- Removes redundant CI step
This commit is contained in:
filtered
2025-03-03 01:45:37 +11:00
committed by GitHub
parent a815ce92a8
commit 165cf210d3
5 changed files with 26 additions and 756 deletions

View File

@@ -1,5 +1,7 @@
{
"compilerOptions": {
"noEmit": true,
"target": "ES2022",
"useDefineForClassFields": true,
"module": "ESNext",
@@ -12,7 +14,7 @@
"emitDecoratorMetadata": true,
/* Linting */
// "strict": true,
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
@@ -27,12 +29,7 @@
// TODO: Remove workaround from initial vite impl: public/src
"typeRoots": ["src/types", "node_modules/@types", "public/src"],
"outDir": "./dist",
"rootDir": "./",
"plugins": [
{
"name": "typescript-strict-plugin"
}
]
"rootDir": "./"
},
"include": ["src/**/*"]
}