Skip to content

New Rule: no-duplicate-keyframe-selectors #141

@snitin315

Description

@snitin315
Contributor

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.

Additional comments

corresponding stylelint rule - https://stylelint.io/user-guide/rules/keyframe-block-no-duplicate-selectors

Activity

added
acceptedThere is consensus among the team that this change meets the criteria for inclusion
on May 21, 2025
nzakas

nzakas commented on May 21, 2025

@nzakas
Member

Sounds like a good idea. 👍 Marking as accepted.

moved this from Needs Triage to Ready to Implement in Triageon May 21, 2025
thecalamiity

thecalamiity commented on May 21, 2025

@thecalamiity
Contributor

I'd be happy to send a PR for this.

moved this from Ready to Implement to Implementing in Triageon May 21, 2025
snitin315

snitin315 commented on May 21, 2025

@snitin315
ContributorAuthor

@thecalamiity Thanks, but I have already started working on it.

moved this from Implementing to Complete in Triageon Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionfeature

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @nzakas@snitin315@thecalamiity

    Issue actions

      New Rule: no-duplicate-keyframe-selectors · Issue #141 · eslint/css