Files
ComfyUI_frontend/tsconfig.json
filtered bfc87af9d1 [TS] Force explicit override & property access (#1006)
Enables TypeScript rules that improve code legibility.

- Requires `override` keyword
- Prevent indexed properties from being accessed with dot notation

```ts
const obj: Record<string, unknown> = {}

// Prefer
obj["property"]

// Over
obj.property
```
2025-05-03 20:37:01 +00:00

37 lines
837 B
JSON

{
"compilerOptions": {
"noEmit": true,
"target": "ES2022",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"sourceMap": true,
"esModuleInterop": true,
"moduleResolution": "Node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
/* Linting */
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
"downlevelIteration": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
/* AllowJs during migration phase */
"allowJs": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"typeRoots": [],
"outDir": "./dist",
"rootDir": "./"
},
"include": ["src/**/*"]
}