File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
crates/oxc_linter/src/rules/eslint Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use oxc_diagnostics::OxcDiagnostic;
66use oxc_macros:: declare_oxc_lint;
77use oxc_span:: { GetSpan , Span } ;
88use oxc_syntax:: operator:: BinaryOperator ;
9+ use schemars:: JsonSchema ;
910
1011use crate :: { AstNode , context:: LintContext , rule:: Rule } ;
1112
@@ -35,7 +36,8 @@ fn index_of_na_n(method_name: &str, span: Span) -> OxcDiagnostic {
3536 . with_label ( span)
3637}
3738
38- #[ derive( Debug , Clone ) ]
39+ #[ derive( Debug , Clone , JsonSchema ) ]
40+ #[ serde( rename_all = "camelCase" , default ) ]
3941pub struct UseIsnan {
4042 /// Whether to disallow NaN in switch cases and discriminants
4143 enforce_for_switch_case : bool ,
@@ -80,7 +82,8 @@ declare_oxc_lint!(
8082 UseIsnan ,
8183 eslint,
8284 correctness,
83- conditional_fix
85+ conditional_fix,
86+ config = UseIsnan ,
8487) ;
8588
8689impl Rule for UseIsnan {
You can’t perform that action at this time.
0 commit comments