Files
Draupnir/tsconfig.json
Gnuxie 986afb7e2b Enable strictPropertyInitialization in tsconfig.json. (#541)
This will stop situations where the throttling queue was uninitialized in the Draupnir instances.

We should really enable `strict` for typescript.

The blocker for that is `useUnknownInCatchVariables` around legacy code (which should be minor).
And also `strictFunctionTypes`, which `interface-manager` exacerbates by not providing the right generics for `describeRenderer` and other methods. 

https://github.com/the-draupnir-project/Draupnir/issues/496
2024-09-09 19:15:41 +01:00

27 lines
698 B
JSON

{
"compilerOptions": {
"alwaysStrict": true,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "commonjs",
"moduleResolution": "node",
"newLine": "LF",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"outDir": "./lib",
"sourceMap": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"target": "es2021",
"types": ["node", "mocha"],
"jsx": "react",
"jsxFactory": "DeadDocumentJSX.JSXFactory"
},
"include": ["./src/**/*"]
}