Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion apps/oxlint/src/command/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ pub struct BasicOptions {
/// Oxlint automatically discovers the relevant `tsconfig.json` for each file.
/// Use this only when your project uses a non-standard tsconfig name or location.
///
/// NOTE: Type checking and Type aware rules will still use the tsconfig discovered automatically, and will not be affected by this option.
/// ::: warning
/// Avoid using this this option. It can cause differences between import resolution,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated ‘this’

/// and type-aware linting. Type aware linting **does not** respect this option,
/// and will always discover the appropriate `tsconfig.json` for each file automatically.
/// :::
#[bpaf(argument("./tsconfig.json"), hide_usage)]
pub tsconfig: Option<PathBuf>,

Expand Down
2 changes: 1 addition & 1 deletion tasks/website_linter/src/snapshots/cli.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ search: false
- **` --tsconfig`**=_`<./tsconfig.json>`_ &mdash;
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.

NOTE: Type checking and Type aware rules will still use the tsconfig discovered automatically, and will not be affected by this option.
::: 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. :::
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated’this’

- **` --init`** &mdash;
Initialize oxlint configuration with default values

Expand Down
Loading