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,
|
"target": "es5",
|
||||||
"experimentalDecorators": true,
|
"module": "es6",
|
||||||
"removeComments": false,
|
"jsx": "preserve",
|
||||||
"noImplicitAny": false,
|
"sourceMap": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"removeComments": false,
|
||||||
"suppressImplicitAnyIndexErrors": true,
|
|
||||||
"newLine": "lf",
|
/* Strict type-checking */
|
||||||
"module": "commonjs",
|
"strict": true,
|
||||||
"target": "es5",
|
"noImplicitAny": true,
|
||||||
"jsx": "react",
|
"strictNullChecks": false,
|
||||||
"allowJs": false
|
"noImplicitThis": true,
|
||||||
}
|
"alwaysStrict": true,
|
||||||
|
|
||||||
|
/* Additional checks */
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue