Skip to content

Conversation

@thecalamiity
Copy link
Contributor

Prerequisites checklist

What is the purpose of this pull request?

This pull request adds autofix support to the no-duplicate-imports rule. The goal is to allow users to automatically remove duplicate @import statements in their CSS files.

What changes did you make? (Give an overview)

  • Updated the no-duplicate-imports rule to provide an autofix that removes duplicate @import statements
  • Added and updated tests to verify that autofix works correctly

Related Issues

Fixes #205

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jul 29, 2025
@lumirlumir lumirlumir added the accepted There is consensus among the team that this change meets the criteria for inclusion label Jul 29, 2025
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@nzakas nzakas merged commit 0aa7b97 into eslint:main Jul 31, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion feature

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

Rule Change: Add autofix capability to the no-duplicate-imports rule

3 participants