mirror of https://github.com/zulip/zulip.git
typescript: Set appropriate compiler options.
* Make type-checking stricter. * Use more modern features.
This commit is contained in:
parent
4f628fd945
commit
da6fb98d21
|
@ -1,16 +1,23 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"sourceMap": true,
|
/* Basic options */
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"removeComments": false,
|
|
||||||
"noImplicitAny": false,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"suppressImplicitAnyIndexErrors": true,
|
|
||||||
"newLine": "lf",
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"jsx": "react",
|
"module": "es6",
|
||||||
"allowJs": false
|
"jsx": "preserve",
|
||||||
|
"sourceMap": true,
|
||||||
|
"removeComments": false,
|
||||||
|
|
||||||
|
/* Strict type-checking */
|
||||||
|
"strict": true,
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"strictNullChecks": false,
|
||||||
|
"noImplicitThis": true,
|
||||||
|
"alwaysStrict": true,
|
||||||
|
|
||||||
|
/* Additional checks */
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue