mirror of https://github.com/zulip/zulip.git
tsconfig: Organize and sort options consistently.
Organize and sort the options in tsconfig.json according to the way they’re listed at https://www.typescriptlang.org/tsconfig/. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
2274716c44
commit
56753edbcd
|
@ -1,48 +1,45 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
/* Type Checking */
|
||||||
|
"exactOptionalPropertyTypes": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noUncheckedIndexedAccess": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"strict": true,
|
||||||
|
|
||||||
|
/* Modules */
|
||||||
|
"moduleResolution": "node",
|
||||||
"paths": {
|
"paths": {
|
||||||
"*": ["./web/src/types/*"],
|
"*": ["./web/src/types/*"],
|
||||||
},
|
},
|
||||||
|
"resolveJsonModule": true,
|
||||||
"types": ["@types/jquery.validation"],
|
"types": ["@types/jquery.validation"],
|
||||||
|
|
||||||
/* TypeScript 3.4 added the --incremental flag but its API is not
|
/* Emit */
|
||||||
* currently public so ts-loader cannot use it yet.
|
|
||||||
* Tracking issue: https://github.com/microsoft/TypeScript/issues/29978
|
|
||||||
*/
|
|
||||||
// "incremental": true,
|
|
||||||
|
|
||||||
/* Basic options */
|
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"target": "ESNext",
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
|
|
||||||
/* Strict type-checking */
|
/* Interop Constraints */
|
||||||
"strict": true,
|
"esModuleInterop": true,
|
||||||
"exactOptionalPropertyTypes": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"noImplicitOverride": true,
|
|
||||||
"noUncheckedIndexedAccess": true,
|
|
||||||
|
|
||||||
/* Additional checks */
|
/* Language and Environment */
|
||||||
"noUnusedLocals": true,
|
"target": "ESNext",
|
||||||
"noUnusedParameters": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
/* Type stubs are not part of the top-level project. */
|
// Type stubs are not part of the top-level project.
|
||||||
"web/src/types",
|
"web/src/types",
|
||||||
|
|
||||||
/* Skip walking large generated directories. */
|
// Skip walking large generated directories.
|
||||||
"docs/_build",
|
"docs/_build",
|
||||||
"static/webpack-bundles",
|
"static/webpack-bundles",
|
||||||
"var",
|
"var",
|
||||||
"zulip-py3-venv",
|
"zulip-py3-venv",
|
||||||
|
|
||||||
/* Even though allowJs defaults to false, typescript-eslint forces it to true. */
|
// Even though allowJs defaults to false, typescript-eslint forces it to true.
|
||||||
"**/*.js",
|
"**/*.js",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,32 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
/* Language and Environment */
|
/* Type Checking */
|
||||||
"target": "esnext",
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"strict": true,
|
||||||
|
|
||||||
/* Modules */
|
/* Modules */
|
||||||
"rootDir": "src",
|
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
"rootDir": "src",
|
||||||
|
|
||||||
|
/* Emit */
|
||||||
|
"declaration": true,
|
||||||
|
"outDir": "lib",
|
||||||
|
"sourceMap": true,
|
||||||
|
|
||||||
/* JavaScript Support */
|
/* JavaScript Support */
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
|
|
||||||
/* Emit */
|
|
||||||
"declaration": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"outDir": "lib",
|
|
||||||
|
|
||||||
/* Interop Constraints */
|
/* Interop Constraints */
|
||||||
"isolatedModules": true,
|
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
|
||||||
/* Type Checking */
|
/* Language and Environment */
|
||||||
"strict": true,
|
"target": "esnext",
|
||||||
"noUnusedLocals": true,
|
|
||||||
"noUnusedParameters": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"noImplicitOverride": true,
|
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue