Skip to content

Commit 5c41410

Browse files
crisbetommalerba
authored andcommitted
build: don't allow duplicate scss imports (#12077)
Enables a rule that doesn't allow duplicate `@import` statements. Also fixes a failure. Fixes #12069.
1 parent fd771fc commit 5c41410

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/lib/menu/menu.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@import '../core/style/button-common';
33
@import '../core/style/layout-common';
44
@import '../core/style/menu-common';
5-
@import '../core/style/layout-common';
65
@import '../../cdk/a11y/a11y';
76

87
$mat-menu-vertical-padding: 8px !default;

stylelint-config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"shorthand-property-no-redundant-values": true,
5050

5151
"property-case": "lower",
52+
"no-duplicate-at-import-rules": true,
5253

5354
"declaration-block-no-duplicate-properties": [true, {
5455
"ignore": ["consecutive-duplicates-with-different-values"]

0 commit comments

Comments
 (0)