From ae90e2c498b559547f177aecf01d4f3aac677977 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 18 Nov 2026 11:44:33 +0000 Subject: [PATCH 1/3] docs(linter): explain how ignore patterns affect type checking --- src/docs/guide/usage/linter/type-aware.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/docs/guide/usage/linter/type-aware.md b/src/docs/guide/usage/linter/type-aware.md index 2a7fd700fb3..9a635933ae6 100644 --- a/src/docs/guide/usage/linter/type-aware.md +++ b/src/docs/guide/usage/linter/type-aware.md @@ -141,18 +141,11 @@ 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: +Oxlint respects your [ignore patterns](./ignore-files) when selecting files to lint. With `tsgolint`, this also limits which files report type errors, even if those files are included in `tsconfig.json`. With `tsrs`, type errors can still be reported in ignored files. -```bash -# before -tsc --noEmit -oxlint - -# after -oxlint --type-aware --type-check -``` +Before switching CI from `tsc --noEmit` to Oxlint type checking, run both on your project and check that Oxlint reports errors in the files you want covered. Keep the separate `tsc --noEmit` step if you need type errors from files that Oxlint skips. ## Configuring type-aware rules From 968c0eaf80e8c2271e03c1c298aaf9364ab7af24 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 18 Nov 2026 13:21:55 +0000 Subject: [PATCH 2/3] docs: make type-check ignore guidance backend-neutral --- src/docs/guide/usage/linter/type-aware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/guide/usage/linter/type-aware.md b/src/docs/guide/usage/linter/type-aware.md index 9a635933ae6..32cf85459e7 100644 --- a/src/docs/guide/usage/linter/type-aware.md +++ b/src/docs/guide/usage/linter/type-aware.md @@ -143,7 +143,7 @@ export default defineConfig({ `--type-check` takes precedence over `options.typeCheck` in config files. It requires type-aware linting, enabled with `--type-aware` or `options.typeAware: true`. -Oxlint respects your [ignore patterns](./ignore-files) when selecting files to lint. With `tsgolint`, this also limits which files report type errors, even if those files are included in `tsconfig.json`. With `tsrs`, type errors can still be reported in ignored files. +Oxlint respects your [ignore patterns](./ignore-files) when selecting files to lint. Whether type errors are reported for ignored files included in `tsconfig.json` depends on the type-aware backend. Before switching CI from `tsc --noEmit` to Oxlint type checking, run both on your project and check that Oxlint reports errors in the files you want covered. Keep the separate `tsc --noEmit` step if you need type errors from files that Oxlint skips. From f77bfba340c82b67d42efaf79433a8595eede0dd Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 18 Nov 2026 13:23:49 +0000 Subject: [PATCH 3/3] docs: clarify which files report type errors --- src/docs/guide/usage/linter/type-aware.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/docs/guide/usage/linter/type-aware.md b/src/docs/guide/usage/linter/type-aware.md index 32cf85459e7..d1b3df45d68 100644 --- a/src/docs/guide/usage/linter/type-aware.md +++ b/src/docs/guide/usage/linter/type-aware.md @@ -143,9 +143,7 @@ export default defineConfig({ `--type-check` takes precedence over `options.typeCheck` in config files. It requires type-aware linting, enabled with `--type-aware` or `options.typeAware: true`. -Oxlint respects your [ignore patterns](./ignore-files) when selecting files to lint. Whether type errors are reported for ignored files included in `tsconfig.json` depends on the type-aware backend. - -Before switching CI from `tsc --noEmit` to Oxlint type checking, run both on your project and check that Oxlint reports errors in the files you want covered. Keep the separate `tsc --noEmit` step if you need type errors from files that Oxlint skips. +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