diff --git a/apps/oxlint/src/command/lint.rs b/apps/oxlint/src/command/lint.rs index 180f051a851be..ada97b898c822 100644 --- a/apps/oxlint/src/command/lint.rs +++ b/apps/oxlint/src/command/lint.rs @@ -203,14 +203,6 @@ pub struct OutputOptions { #[expect(clippy::struct_field_names)] #[derive(Debug, Default, Clone, Bpaf)] pub struct EnablePlugins { - /// Disable react plugin, which is turned on by default - #[bpaf( - long("disable-react-plugin"), - flag(OverrideToggle::Disable, OverrideToggle::NotSet), - hide_usage - )] - pub react_plugin: OverrideToggle, - /// Disable unicorn plugin, which is turned on by default #[bpaf( long("disable-unicorn-plugin"), @@ -240,6 +232,10 @@ pub struct EnablePlugins { #[bpaf(flag(OverrideToggle::Enable, OverrideToggle::NotSet), hide_usage)] pub import_plugin: OverrideToggle, + /// Enable react plugin, which is turned off by default + #[bpaf(flag(OverrideToggle::Enable, OverrideToggle::NotSet), hide_usage)] + pub react_plugin: OverrideToggle, + /// Enable the experimental jsdoc plugin and detect JSDoc problems #[bpaf(flag(OverrideToggle::Enable, OverrideToggle::NotSet), hide_usage)] pub jsdoc_plugin: OverrideToggle, diff --git a/tasks/website/src/linter/snapshots/cli.snap b/tasks/website/src/linter/snapshots/cli.snap index 7aea615293010..35385c7d95d8e 100644 --- a/tasks/website/src/linter/snapshots/cli.snap +++ b/tasks/website/src/linter/snapshots/cli.snap @@ -45,8 +45,6 @@ Arguments: ## Enable Plugins -- **` --disable-react-plugin`** — - Disable react plugin, which is turned on by default - **` --disable-unicorn-plugin`** — Disable unicorn plugin, which is turned on by default - **` --disable-oxc-plugin`** — @@ -55,6 +53,8 @@ Arguments: Disable TypeScript plugin, which is turned on by default - **` --import-plugin`** — Enable the experimental import plugin and detect ESM problems. It is recommended to use along side with the `--tsconfig` option. +- **` --react-plugin`** — + Enable react plugin, which is turned off by default - **` --jsdoc-plugin`** — Enable the experimental jsdoc plugin and detect JSDoc problems - **` --jest-plugin`** — diff --git a/tasks/website/src/linter/snapshots/cli_terminal.snap b/tasks/website/src/linter/snapshots/cli_terminal.snap index 17c925c3cfab3..31d75a47cb493 100644 --- a/tasks/website/src/linter/snapshots/cli_terminal.snap +++ b/tasks/website/src/linter/snapshots/cli_terminal.snap @@ -29,12 +29,12 @@ Allowing / Denying Multiple Lints -D, --deny=NAME Deny the rule or category (emit an error) Enable Plugins - --disable-react-plugin Disable react plugin, which is turned on by default --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 the experimental import plugin and detect ESM problems. It is recommended to use along side with the `--tsconfig` option. + --react-plugin Enable react plugin, which is turned off by default --jsdoc-plugin Enable the experimental jsdoc plugin and detect JSDoc problems --jest-plugin Enable the Jest plugin and detect test problems --vitest-plugin Enable the Vitest plugin and detect test problems