@@ -38,8 +38,6 @@ bitflags! {
3838 const PROMISE = 1 << 11 ;
3939 /// `eslint-plugin-node`
4040 const NODE = 1 << 12 ;
41- /// Custom security rules made by the Oxc team
42- const SECURITY = 1 << 13 ;
4341 }
4442}
4543impl Default for LintPlugins {
@@ -65,7 +63,6 @@ impl From<LintPluginOptions> for LintPlugins {
6563 plugins. set ( LintPlugins :: REACT_PERF , options. react_perf ) ;
6664 plugins. set ( LintPlugins :: PROMISE , options. promise ) ;
6765 plugins. set ( LintPlugins :: NODE , options. node ) ;
68- plugins. set ( LintPlugins :: SECURITY , options. security ) ;
6966 plugins
7067 }
7168}
@@ -115,7 +112,6 @@ impl From<&str> for LintPlugins {
115112 "react-perf" | "react_perf" => LintPlugins :: REACT_PERF ,
116113 "promise" => LintPlugins :: PROMISE ,
117114 "node" => LintPlugins :: NODE ,
118- "security" | "oxc-security" => LintPlugins :: SECURITY ,
119115 // "eslint" is not really a plugin, so it's 'empty'. This has the added benefit of
120116 // making it the default value.
121117 _ => LintPlugins :: empty ( ) ,
@@ -139,7 +135,6 @@ impl From<LintPlugins> for &'static str {
139135 LintPlugins :: REACT_PERF => "react-perf" ,
140136 LintPlugins :: PROMISE => "promise" ,
141137 LintPlugins :: NODE => "node" ,
142- LintPlugins :: SECURITY => "security" ,
143138 _ => "" ,
144139 }
145140 }
@@ -245,7 +240,6 @@ pub struct LintPluginOptions {
245240 pub react_perf : bool ,
246241 pub promise : bool ,
247242 pub node : bool ,
248- pub security : bool ,
249243}
250244
251245impl Default for LintPluginOptions {
@@ -264,7 +258,6 @@ impl Default for LintPluginOptions {
264258 react_perf : false ,
265259 promise : false ,
266260 node : false ,
267- security : false ,
268261 }
269262 }
270263}
@@ -287,7 +280,6 @@ impl LintPluginOptions {
287280 react_perf : false ,
288281 promise : false ,
289282 node : false ,
290- security : false ,
291283 }
292284 }
293285
@@ -308,7 +300,6 @@ impl LintPluginOptions {
308300 react_perf : true ,
309301 promise : true ,
310302 node : true ,
311- security : true ,
312303 }
313304 }
314305}
@@ -332,7 +323,6 @@ impl<S: AsRef<str>> FromIterator<(S, bool)> for LintPluginOptions {
332323 LintPlugins :: REACT_PERF => options. react_perf = enabled,
333324 LintPlugins :: PROMISE => options. promise = enabled,
334325 LintPlugins :: NODE => options. node = enabled,
335- LintPlugins :: SECURITY => options. security = enabled,
336326 _ => { } // ignored
337327 }
338328 }
@@ -365,7 +355,6 @@ mod test {
365355 && self . react_perf == other. react_perf
366356 && self . promise == other. promise
367357 && self . node == other. node
368- && self . security == other. security
369358 }
370359 }
371360
@@ -405,7 +394,6 @@ mod test {
405394 react_perf : false ,
406395 promise : false ,
407396 node : false ,
408- security : false ,
409397 } ;
410398 assert_eq ! ( plugins, expected) ;
411399 }
0 commit comments