From af72b802be621fbea6e6ca1fbfc9a685c978b6fc Mon Sep 17 00:00:00 2001 From: leaysgur <6259812+leaysgur@users.noreply.github.com> Date: Tue, 31 Mar 2026 07:29:26 +0000 Subject: [PATCH] docs(oxlint): Fix typo for --tsconfig (#20889) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow up #20884 Thanks @dsonet for finding this. 🙏🏻 https://github.com/oxc-project/oxc/pull/20884/changes#r3013979717 --- apps/oxlint/src/command/lint.rs | 2 +- tasks/website_linter/src/snapshots/cli.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/oxlint/src/command/lint.rs b/apps/oxlint/src/command/lint.rs index ef96730f67360..caacc3cca4771 100644 --- a/apps/oxlint/src/command/lint.rs +++ b/apps/oxlint/src/command/lint.rs @@ -128,7 +128,7 @@ pub struct BasicOptions { /// Use this only when your project uses a non-standard tsconfig name or location. /// /// ::: warning - /// Avoid using this this option. It can cause differences between import resolution, + /// Avoid using this option. It can cause differences between import resolution, /// and type-aware linting. Type aware linting **does not** respect this option, /// and will always discover the appropriate `tsconfig.json` for each file automatically. /// ::: diff --git a/tasks/website_linter/src/snapshots/cli.snap b/tasks/website_linter/src/snapshots/cli.snap index 174c40cafac62..4e34cddbb2f01 100644 --- a/tasks/website_linter/src/snapshots/cli.snap +++ b/tasks/website_linter/src/snapshots/cli.snap @@ -22,7 +22,7 @@ search: false - **` --tsconfig`**=_`<./tsconfig.json>`_ — Override the TypeScript config used for import resolution. Oxlint automatically discovers the relevant `tsconfig.json` for each file. Use this only when your project uses a non-standard tsconfig name or location. - ::: warning Avoid using this this option. It can cause differences between import resolution, and type-aware linting. Type aware linting **does not** respect this option, and will always discover the appropriate `tsconfig.json` for each file automatically. ::: + ::: warning Avoid using this option. It can cause differences between import resolution, and type-aware linting. Type aware linting **does not** respect this option, and will always discover the appropriate `tsconfig.json` for each file automatically. ::: - **` --init`** — Initialize oxlint configuration with default values