# typescript/tsc

> Runs tsc with the strict compiler options over every TypeScript file.

Runs tsc with the strict compiler options over every TypeScript file.

Part of the [`typescript`](/reference/configurations/typescript/) configuration, at the `recommended` [level](/start/concepts/#levels). It runs at the `push` [stage](/start/concepts/#stage), once per scope. It runs tsc.

## Why

A type error left in a file can crash the program at run time, though the editor already showed it.

## What to do

Fix the first error tsc prints; later errors often come from the same mistake.

## Example

`const count: number = "one";` reports an incompatible assignment. Assign a number, such as `const count: number = 1;`.

## Turn it off

Turn it off for some files, with a reason:

```shell
gspot ignore typescript/tsc --paths "<glob>" --reason "<why>"
```

To silence one place, write a comment such as:

```text
// @ts-expect-error: the library types omit this overload
```
