fix(config): don't enable rules with domains when categories are enabled#9553
fix(config): don't enable rules with domains when categories are enabled#9553
Conversation
🦋 Changeset detectedLatest commit: 7f088c0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
a5426fb to
b8ba9ef
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
|
Assuming users don't have any dependencies that enable a particular domain, I think it's fair to consider this current behaviour a bug. As for For example, if you have So, to answer your question: no, Same for biome lint --only=correctness --skip=qwickWhile I understand that it isn't ideal, it's also true that we have rules that don't play well with each other, and that's a known fact. Users will come to understand how things work. (still, we need to fix the default behaviour) |
b8ba9ef to
7f088c0
Compare
|
Makes sense to me, i've reverted the behavior changes to --only and --skip |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughA changeset and tests were added to ensure enabling a whole linter rule group (e.g. Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Summary
When a user enables an entire category of rules, Biome shouldn't enable rules that have domains if those domains aren't enabled.
One question from a UX perspective is: should
--skip=correctnesshave the same behavior, or should it skip all of the rules that are incorrectness, even if a rule is manually enabled and outside the enabled domains?Also: should
projectandtypedbe excluded from this behavior?From an issue raised on discord: https://discord.com/channels/1132231889290285117/1132231889911029825/1484172669854416978
Generated by gpt 5.4, but the change is fairly small.
This is on
mainbecause I consider it unintentional behavior, particularly because recommended rules behavior already excluded domain-tagged rules. But an argument could be made that this is a breaking enough change to go onnextinstead.Test Plan
added cli tests
Docs
TODO once we've figured out the semantics here