-
-
Notifications
You must be signed in to change notification settings - Fork 760
feat(config): make options optional for rule with a fix #7938
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
Conversation
🦋 Changeset detectedLatest commit: 80974fb The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 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 |
WalkthroughThe Biome configuration schema now makes the Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
CodSpeed Performance ReportMerging #7938 will not alter performanceComparing Summary
Footnotes
|
ec9e947 to
1e40d42
Compare
1e40d42 to
126a60b
Compare
126a60b to
ea1d7ce
Compare
ea1d7ce to
80974fb
Compare
| @@ -0,0 +1,24 @@ | |||
| --- | |||
| "@biomejs/biome": minor | |||
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.
Why is it a minor? I thought it was a bug fix. That's not a new feature imho
|
Closing in favor of #7941 |
Summary
Fixes #7943
This PR changes the way we merge rules' options.
We now track if
optionswas set or not for rules with fixes.One downside is that
RuleWithFixOptionsincreases its size by one byte.This concerns even rules with a fix and without options.
This seems reasonable because most of the rules have no fixes.
If we wished to reduce this cost to rules without options, we will need some metadata to differentiate rules with and without options - what we don't have currently.
Alternative fix
An alternative fix could be to implement
Mergefor every Rule options such as merging a default config into an explicit one, don't override the explicitly set options.This will require to change many options to make them properly mergeable.
See #7941
Test Plan
I added a test for testing that the options are correctly inherited.
Docs
I added a change set.