Skip to content

Commit

Permalink
update transform_rule_and_plugin_name
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Dec 28, 2024
1 parent cf76f8a commit 24388b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 80 deletions.
4 changes: 4 additions & 0 deletions crates/oxc_linter/src/config/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ fn transform_rule_and_plugin_name<'a>(
return (rule_name, "eslint");
}

if plugin_name == "unicorn" && rule_name == "no-negated-condition" {
return ("no-negated-condition", "eslint");
}

(rule_name, plugin_name)
}

Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ mod eslint {
pub mod no_loss_of_precision;
pub mod no_magic_numbers;
pub mod no_multi_str;
pub mod no_negated_condition;
pub mod no_nested_ternary;
pub mod no_new;
pub mod no_new_func;
Expand Down
79 changes: 0 additions & 79 deletions crates/oxc_linter/src/rules/eslint/no_negated_condition.rs

This file was deleted.

0 comments on commit 24388b5

Please sign in to comment.