-
-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionfeature
Description
Rule details
Disallow duplicate selectors within keyframe blocks.
What type of rule is this?
Warns about a potential problem
Example code
/* eslint css/no-duplicate-keyframe-selectors: "error" */
@keyframes foo { 0% {} 0% {} } // error
@keyframes foo { from {} from {} } // error
@keyframes foo { 0% {} 100% {} } // ✅
@keyframes foo { from {} to {} } // ✅
Participation
- I am willing to submit a pull request to implement this rule.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Additional comments
corresponding stylelint rule - https://stylelint.io/user-guide/rules/keyframe-block-no-duplicate-selectors
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionfeature
Type
Projects
Status
Complete
Milestone
Relationships
Development
Select code repository
Activity
nzakas commentedon May 21, 2025
Sounds like a good idea. 👍 Marking as accepted.
thecalamiity commentedon May 21, 2025
I'd be happy to send a PR for this.
no-duplicate-keyframe-selectors
#143snitin315 commentedon May 21, 2025
@thecalamiity Thanks, but I have already started working on it.