Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions src/docs/guide/usage/linter/type-aware.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,9 @@ export default defineConfig({

:::

`--type-check` takes precedence over config files. For example, `oxlint --type-check -c .oxlintrc.json` enables type checking even if that config sets `options.typeCheck` to `false`.
`--type-check` takes precedence over `options.typeCheck` in config files. It requires type-aware linting, enabled with `--type-aware` or `options.typeAware: true`.

This mode can replace a separate `tsc --noEmit` step in CI:

```bash
# before
tsc --noEmit
oxlint

# after
oxlint --type-aware --type-check
```
Oxlint respects your [ignore patterns](./ignore-files): `--type-check` reports type errors only in files Oxlint lints. To check the whole TypeScript project, including files Oxlint ignores, run `tsc --noEmit` separately.

## Configuring type-aware rules

Expand Down
Loading