Files
zulip/tsconfig.json
Anders Kaseorg 58e9526586 tsconfig: Disable automatic inclusion of type packages.
Automatic inclusion is for files with global declarations, as opposed
to files declared as modules.  typeRoots already had the side effect
of disabling the default automatic inclusion for node_modules.  Since
we also don’t need it for static/js/types, we may as well disable it
completely.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-03-26 17:07:50 -07:00

49 lines
1.3 KiB
JSON

{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["static/js/types/*"],
},
"types": [],
/* Typescript 3.4 added the --incremental flag but its API is not
* currently public so ts-loader cannot use it yet.
* Tracking issue: https://github.com/microsoft/TypeScript/issues/29978
*/
// "incremental": true,
/* Basic options */
"noEmit": true,
"target": "ES2019",
"module": "ES6",
"esModuleInterop": true,
"moduleResolution": "node",
"sourceMap": true,
/* Strict type-checking */
"strict": true,
"strictNullChecks": false,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
/* Additional checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
},
"exclude": [
/* Type stubs are not part of the top-level project. */
"static/js/types",
/* Skip walking large generated directories. */
"docs/_build",
"static/webpack-bundles",
"var",
"zulip-py3-venv",
/* Even though allowJs defaults to false, typescript-eslint forces it to true. */
"**/*.js",
],
}