mirror of https://github.com/zulip/zulip.git
tsconfig: Move to top level.
This way, webpack.config.ts is type checked. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
de4685441c
commit
0584a7938f
|
@ -416,7 +416,7 @@
|
|||
"files": ["**/*.ts"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": "static/js/tsconfig.json"
|
||||
"project": "tsconfig.json"
|
||||
},
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"rules": {
|
||||
|
|
|
@ -85,7 +85,7 @@ def run():
|
|||
linter_config.external_linter('mypy', command, ['py'], pass_targets=False,
|
||||
description="Static type checker for Python (config: mypy.ini)")
|
||||
linter_config.external_linter('tsc', ['tools/run-tsc'], ['ts'], pass_targets=False,
|
||||
description="TypeScript compiler (config: static/js/tsconfig.json)")
|
||||
description="TypeScript compiler (config: tsconfig.json)")
|
||||
linter_config.external_linter('yarn-deduplicate', ['tools/run-yarn-deduplicate'], ['lock'],
|
||||
pass_targets=False,
|
||||
description="Shares duplicate packages in yarn.lock")
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
ZULIP_PATH="$(dirname "$0")/.."
|
||||
exec "$ZULIP_PATH/node_modules/.bin/tsc" --project "$ZULIP_PATH/static/js" "$@"
|
||||
exec "$ZULIP_PATH/node_modules/.bin/tsc" --project "$ZULIP_PATH" "$@"
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"*": ["types/*"],
|
||||
"*": ["static/js/types/*"],
|
||||
},
|
||||
"typeRoots": ["types"],
|
||||
"typeRoots": ["static/js/types"],
|
||||
|
||||
/* Typescript 3.4 added the --incremental flag but its API is not
|
||||
* currently public so ts-loader cannot use it yet.
|
||||
|
@ -33,6 +33,6 @@
|
|||
"noFallthroughCasesInSwitch": true,
|
||||
},
|
||||
"exclude": [
|
||||
"types",
|
||||
"static/js/types",
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue