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

Fix keyframe-selector-notation false positives for named timeline range #6605

Merged
merged 7 commits into from Feb 4, 2023

Conversation

kimulaco
Copy link
Member

Which issue, if any, is this issue related to?

Closes #6538

Is there anything in the PR that needs further explanation?

Fix to stop linting if the selector of the keyframe has multiple tags.
Please let me know if there is a better approach.

@changeset-bot
Copy link

changeset-bot bot commented Jan 31, 2023

🦋 Changeset detected

Latest commit: ca57baf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Patch

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

@kimulaco
Copy link
Member Author

kimulaco commented Jan 31, 2023

I misunderstood the spec.
I will add a fix that ignores when using the timeline-range-name (cover | contain | entry | enter | exit ).
https://www.w3.org/TR/scroll-animations-1/#view-timelines-ranges

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

@kimulaco Thanks for creating the pull request. I've left a refactoring suggestion comment, but there is no problem. 👍🏼

lib/rules/keyframe-selector-notation/index.js Show resolved Hide resolved
Copy link
Member

@ybiquitous ybiquitous 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. LGTM 👍🏼

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you.

@jeddy3 jeddy3 merged commit 731a4c4 into stylelint:main Feb 4, 2023
description: 'timeline-range-name contain',
},
{
code: '@keyframes foo { entry 0% {} entry 100% {} }',
Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Fix keyframe-selector-notation false positives for named timeline ranges
4 participants