lint: Add TypeScript compiler as a linter.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-07-20 11:40:36 -07:00
committed by Tim Abbott
parent 40e8fd24ff
commit ecfb7c6a7f
8 changed files with 20 additions and 6 deletions

View File

@@ -32,11 +32,11 @@ The following resources are valuable for learning TypeScript:
## Type checking
TypeScript types are checked primarily via `webpack`, so you'll see
typing errors in red in your `run-dev.py` console as you do
development.
TODO: Document command for running the type check manually.
TypeScript types are checked by the TypeScript compiler, `tsc`, which
is run as part of our [lint checks](linters.html). You can run the
compiler yourself with `tools/run-tsc`, which will check all the
TypeScript files once, or `tools/run-tsc --watch`, which will
continually recheck the files as you edit them.
## Linting and style