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
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/eslint/max_depth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ declare_oxc_lint!(
/// ```
MaxDepth,
eslint,
pedantic
pedantic,
config = MaxDepth,
);

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/oxc/bad_bitwise_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ declare_oxc_lint!(
/// ```
BadBitwiseOperator,
oxc,
restriction // Restricted because there are false positives for enum bitflags in TypeScript,
restriction, // Restricted because there are false positives for enum bitflags in TypeScript,
// e.g. in the vscode repo
pending
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ declare_oxc_lint!(
react,
correctness,
suggestion
suggestion
);

fn check_forward_ref_inner<'a>(
Expand Down
9 changes: 7 additions & 2 deletions crates/oxc_macros/src/declare_oxc_lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@ impl Parse for LintRuleMeta {
}
}

// Ignore the rest
input.parse::<proc_macro2::TokenStream>()?;
let remaining = input.parse::<proc_macro2::TokenStream>()?;
if !remaining.is_empty() {
return Err(Error::new_spanned(
remaining,
"unexpected tokens in rule declaration, missing a comma?",
));
}

Ok(Self {
name: struct_name,
Expand Down
Loading