hedgedoc/tsconfig.json
Sheogorath 004e2fbcb2
TypeScript: Tighten configs to improve type validation
TypeScript considers null and undefined as fine for all variable by
default. This patch enables `strictNullChecks`, which should cause
errors to be thrown as soon as a variable is null or undefined without
having it explicitly decleared for itself.[1]

[1]: https://www.typescriptlang.org/docs/handbook/migrating-from-javascript.html#strict-null--undefined-checks

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2020-02-24 16:19:17 +01:00

13 lines
219 B
JSON

{
"compilerOptions": {
"outDir": "./built",
"allowJs": true,
"strictNullChecks": true,
"target": "es5",
"module": "commonjs",
"esModuleInterop": true
},
"include": [
"./lib/**/*"
]
}