stylelint: Add no-duplicate-at-import-rules

Hi, wondering if there’s a rule that could warn for the following issues please?

Same path imported:

@import "test/test";
…
@import "test/test";

Same variable declared:

$test: #f00;
…
$test: #b00;

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Hi, I’d like to give it a try (first time contributor).

Yeap, that’s what I mean above.

  • no-duplicate-at-import-rules - built-in rule, as for a standard construct (@import).
  • no-duplicate-dollar-variables - plugin in the stylelint-scss plugin pack, as for a non-standard construct (dollar variables).