Skip to content
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_analyze): noDuplicateSelectorsKeyframeBlock #2534

Merged
merged 4 commits into from
Apr 20, 2024

Conversation

isnakode
Copy link
Contributor

Summary

this PR adds lint support to remove duplicate selector in keyframes block #2523

Test Plan

spec test

@github-actions github-actions bot added A-Project Area: project L-CSS Language: CSS A-Diagnostic Area: diagnostocis labels Apr 19, 2024
Copy link

codspeed-hq bot commented Apr 19, 2024

CodSpeed Performance Report

Merging #2534 will improve performances by 17.64%

Comparing isnakode:main (7b3e87a) with main (ff73013)

Summary

⚡ 1 improvements
✅ 92 untouched benchmarks

Benchmarks breakdown

Benchmark main isnakode:main Change
eucjp.json[uncached] 5.8 ms 4.9 ms +17.64%

Copy link
Contributor

@togami2864 togami2864 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you run just gen-lint to pass CI?

Comment on lines 1 to 5
@keyframes foo { from {} from {}}

@keyframes foo { from {} FROM {}}

@keyframes foo { 0% {} 0% {}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnakode and others added 2 commits April 20, 2024 13:34
Co-authored-by: ty <62130798+togami2864@users.noreply.github.com>
Copy link
Contributor

@togami2864 togami2864 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@togami2864 togami2864 merged commit 5df8781 into biomejs:main Apr 20, 2024
12 checks passed
rule_category!(),
node.range(),
markup! {
"Unexpected duplicate selector: "<Emphasis>{node.text()}</Emphasis>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@togami2864 can you please follow up on this rule? Let's remember that we want to follow the rule pillars: https://biomejs.dev/linter/#rule-pillars

This rule doesn't explain why two duplicated selectors are wrong.

@unvalley unvalley changed the title feat(biome_css_analyze): keyframe-block-no-duplicate-selectors feat(biome_css_analyze): noDuplicateSelectorsKeyframeBlock Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Diagnostic Area: diagnostocis A-Project Area: project L-CSS Language: CSS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants