Skip to content

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

Open
@snitin315

Description

@snitin315

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

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Implementing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions