-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(linter): split unicorn/prefer-spread
and eslint/prefer-spread
into own rules
#8329
Conversation
…read` into own rules
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
CodSpeed Performance ReportMerging #8329 will not alter performanceComparing Summary
|
@camc314 the tests for unicorn are failing because the Does it need a Looks like this finds the wrong rule: oxc/crates/oxc_linter/src/tester.rs Line 444 in 9ea4e31
|
yeah i remember starting to look at this: oxc/crates/oxc_linter/src/tester.rs Line 511 in 3c534ae
this should be changed to something like diff --git a/crates/oxc_linter/src/tester.rs b/crates/oxc_linter/src/tester.rs
index 0dab59886..1c0f9772e 100644
--- a/crates/oxc_linter/src/tester.rs
+++ b/crates/oxc_linter/src/tester.rs
@@ -508,7 +508,7 @@ impl Tester {
fn find_rule(&self) -> &RuleEnum {
RULES
.iter()
- .find(|rule| rule.category() == self.rule_category && rule.name() == self.rule_name)
+ .find(|rule| rule.plugin_name() == self.plugin_name && rule.name() == self.rule_name)
.unwrap_or_else(|| panic!("Rule not found: {}", &self.rule_name))
}
} so yeah it needs a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
## [0.15.6] - 2025-01-13 ### Features - 457aa31 linter: Implement `no-lone-blocks` rule (#8145) (Yuichiro Yamashita) ### Refactor - aea9551 ast: Simplify `get_identifier_reference` of `TSType` and `TSTypeName` (#8273) (Dunqing) - 43ed3e1 linter: Add output formatter (#8436) (Alexander S.) - 4e05e66 linter: Remove glob for windows (#8390) (Alexander S.) - b19d809 linter: Split `unicorn/prefer-spread` and `eslint/prefer-spread` into own rules (#8329) (Alexander S.) - 3c534ae linter: Refactor `LintBuilder` to prep for nested configs (#8034) (camc314) - 2f9fab9 linter: Remove remapping for plugin name in diagnostics (#8223) (Alexander S.) ### Testing - b6c1546 linter: Use plugin name instead of category for finding rule (#8353) (Alexander S.) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
closes #7948