@@ -267,6 +267,14 @@ pub struct EnablePlugins {
267267 /// Enable the node plugin and detect node usage problems
268268 #[ bpaf( flag( OverrideToggle :: Enable , OverrideToggle :: NotSet ) , hide_usage) ]
269269 pub node_plugin : OverrideToggle ,
270+
271+ /// Enable the regex plugin and detect regex usage problems
272+ #[ bpaf( flag( OverrideToggle :: Enable , OverrideToggle :: NotSet ) , hide_usage) ]
273+ pub regex_plugin : OverrideToggle ,
274+
275+ /// Enable the vue plugin and detect vue usage problems
276+ #[ bpaf( flag( OverrideToggle :: Enable , OverrideToggle :: NotSet ) , hide_usage) ]
277+ pub vue_plugin : OverrideToggle ,
270278}
271279
272280/// Enables or disables a boolean option, or leaves it unset.
@@ -343,6 +351,8 @@ impl EnablePlugins {
343351 . inspect ( |yes| plugins. builtin . set ( BuiltinLintPlugins :: REACT_PERF , yes) ) ;
344352 self . promise_plugin . inspect ( |yes| plugins. builtin . set ( BuiltinLintPlugins :: PROMISE , yes) ) ;
345353 self . node_plugin . inspect ( |yes| plugins. builtin . set ( BuiltinLintPlugins :: NODE , yes) ) ;
354+ self . regex_plugin . inspect ( |yes| plugins. builtin . set ( BuiltinLintPlugins :: REGEX , yes) ) ;
355+ self . vue_plugin . inspect ( |yes| plugins. builtin . set ( BuiltinLintPlugins :: VUE , yes) ) ;
346356
347357 // Without this, jest plugins adapted to vitest will not be enabled.
348358 if self . vitest_plugin . is_enabled ( ) && self . jest_plugin . is_not_set ( ) {
@@ -363,7 +373,7 @@ pub enum ReportUnusedDirectives {
363373 /// Same as `--report-unused-disable-directives`, but allows you to specify the severity level of the reported errors.
364374 /// Only one of these two options can be used at a time.
365375 #[ bpaf(
366- long( "report-unused-disable-directives-severity" ) ,
376+ long( "report-unused-disable-directives-severity" ) ,
367377 argument:: <String >( "SEVERITY" ) ,
368378 guard( |s| AllowWarnDeny :: try_from( s. as_str( ) ) . is_ok( ) , "Invalid severity value" ) ,
369379 map( |s| AllowWarnDeny :: try_from( s. as_str( ) ) . unwrap( ) ) , // guard ensures try_from will be Ok
0 commit comments