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(linter): implement NoUnmatchableAnbSelector #2706

Merged
merged 9 commits into from
May 4, 2024

Conversation

togami2864
Copy link
Contributor

Summary

close #2524

Test Plan

added tests and snapshots

@togami2864 togami2864 self-assigned this May 4, 2024
@github-actions github-actions bot added A-Project Area: project L-CSS Language: CSS A-Diagnostic Area: diagnostocis labels May 4, 2024
Copy link

codspeed-hq bot commented May 4, 2024

CodSpeed Performance Report

Merging #2706 will not alter performance

Comparing togami2864:feat/noUnmatchableAnbSelector (6b6f3ca) with main (f77ab54)

Summary

✅ 86 untouched benchmarks

}
}

fn is_within_not_pseudo_class(node: &AnyCssPseudoClassNth) -> bool {
Copy link
Member

Choose a reason for hiding this comment

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

It might be worth documenting a bit this function

.note(markup! {
"Avoid using An+B selectors that always evaluate to 0."
}).note(markup! {
"For more details, see "<Hyperlink href="https://www.w3.org/TR/css-syntax-3/#anb-microsyntax">"this document"</Hyperlink>"."
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"For more details, see "<Hyperlink href="https://www.w3.org/TR/css-syntax-3/#anb-microsyntax">"this document"</Hyperlink>"."
"For more details, see "<Hyperlink href="https://www.w3.org/TR/css-syntax-3/#anb-microsyntax">"the official spec for An+B selectors"</Hyperlink>"."

@togami2864 togami2864 force-pushed the feat/noUnmatchableAnbSelector branch from eea2601 to 6b6f3ca Compare May 4, 2024 15:45
@togami2864 togami2864 changed the title feat(linter): Implement NoUnmatchableAnbSelector feat(linter): implement NoUnmatchableAnbSelector May 4, 2024
@togami2864 togami2864 merged commit cb0182e into biomejs:main May 4, 2024
13 checks passed
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.

📎 Implement selector-anb-no-unmatchable
2 participants