mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
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:
@@ -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/**/*"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user