What rule do you want to change?
no-duplicate-imports
What change do you want to make?
Implement suggestions
How do you think the change should be implemented?
Other
Example code
@import 'test.css' print;
@import 'test.css';
/* OR */
@import 'test.css' (min-width: 800px);
@import 'test.css';
/* OR */
@import 'test.css' layer(base);
@import 'test.css' layer(components);
What does the rule currently do for this code?
Right now, Rule reports the second import as a duplicate and removes it as an autofix. But what if one @import has some import condition with it and the other doesn't, or both have different import conditions to apply? Then, in such conditions, autofix can impact the functionality.
What will the rule do after it's changed?
The rule will not apply autofix when it finds duplicate imports with different import conditions.
Participation
AI acknowledgment
Additional comments
No response
What rule do you want to change?
no-duplicate-imports
What change do you want to make?
Implement suggestions
How do you think the change should be implemented?
Other
Example code
What does the rule currently do for this code?
Right now, Rule reports the second import as a duplicate and removes it as an autofix. But what if one @import has some import condition with it and the other doesn't, or both have different import conditions to apply? Then, in such conditions, autofix can impact the functionality.
What will the rule do after it's changed?
The rule will not apply autofix when it finds duplicate imports with different import conditions.
Participation
AI acknowledgment
Additional comments
No response