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
3 changes: 2 additions & 1 deletion apps/oxlint/src/command/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ pub struct EnablePlugins {
pub typescript_plugin: OverrideToggle,

/// Enable import plugin and detect ESM problems.
/// It is recommended to use alongside the `--tsconfig` option.
/// It should be used with the `--tsconfig` flag if your project has a
/// tsconfig with a name other than `tsconfig.json`.
#[bpaf(flag(OverrideToggle::Enable, OverrideToggle::NotSet), hide_usage)]
pub import_plugin: OverrideToggle,

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 @@ -59,7 +59,7 @@ Arguments:
- **` --disable-typescript-plugin`** —
Disable TypeScript plugin, which is turned on by default
- **` --import-plugin`** —
Enable import plugin and detect ESM problems. It is recommended to use alongside the `--tsconfig` option.
Enable import plugin and detect ESM problems. It should be used with the `--tsconfig` flag if your project has a tsconfig with a name other than `tsconfig.json`.
- **` --react-plugin`** —
Enable react plugin, which is turned off by default
- **` --jsdoc-plugin`** —
Expand Down
5 changes: 3 additions & 2 deletions tasks/website_linter/src/snapshots/cli_terminal.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ Enable/Disable Plugins
--disable-unicorn-plugin Disable unicorn plugin, which is turned on by default
--disable-oxc-plugin Disable oxc unique rules, which is turned on by default
--disable-typescript-plugin Disable TypeScript plugin, which is turned on by default
--import-plugin Enable import plugin and detect ESM problems. It is recommended to use
alongside the `--tsconfig` option.
--import-plugin Enable import plugin and detect ESM problems. It should be used with
the `--tsconfig` flag if your project has a tsconfig with a name other
than `tsconfig.json`.
--react-plugin Enable react plugin, which is turned off by default
--jsdoc-plugin Enable jsdoc plugin and detect JSDoc problems
--jest-plugin Enable the Jest plugin and detect test problems
Expand Down
Loading