-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
feat(biome_css_analyzer): implement noUnknownMediaFeatureName #2751
feat(biome_css_analyzer): implement noUnknownMediaFeatureName #2751
Conversation
CodSpeed Performance ReportMerging #2751 will not alter performanceComparing Summary
|
e4a7b8d
to
6722366
Compare
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.
All the unwrap
should be removed. You should use ?
instead.
crates/biome_css_analyze/src/lint/nursery/no_unknown_media_feature_name.rs
Outdated
Show resolved
Hide resolved
crates/biome_css_analyze/src/lint/nursery/no_unknown_media_feature_name.rs
Outdated
Show resolved
Hide resolved
crates/biome_css_analyze/src/lint/nursery/no_unknown_media_feature_name.rs
Outdated
Show resolved
Hide resolved
crates/biome_css_analyze/src/lint/nursery/no_unknown_media_feature_name.rs
Outdated
Show resolved
Hide resolved
return Some(true); | ||
} | ||
let right = css_media_and_condition.right().ok().unwrap(); | ||
check_any_css_media_and_combinable_condition(right) |
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.
I strongly suggest avoiding recursions if possible. Usually you can use loops or iterators
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.
I replaced recursions with loops.
e5ce4e0
to
51ec481
Compare
@Kazuhiro-Mimaki the PR has some conflicts |
9f180c3
to
cb86b65
Compare
@togami2864 can you review and merge? |
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.
Thank you! Could you rebase?
cb86b65
to
3f45256
Compare
Close #2626
Summary
Implements media-feature-name-no-unknown
Test Plan
Add snapshots.