Skip to content

Commit

Permalink
build: don't allow duplicate scss imports (#12077)
Browse files Browse the repository at this point in the history
Enables a rule that doesn't allow duplicate `@import` statements. Also fixes a failure.

Fixes #12069.
  • Loading branch information
crisbeto authored and mmalerba committed Jul 5, 2018
1 parent fd771fc commit 5c41410
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/menu/menu.scss
Expand Up @@ -2,7 +2,6 @@
@import '../core/style/button-common';
@import '../core/style/layout-common';
@import '../core/style/menu-common';
@import '../core/style/layout-common';
@import '../../cdk/a11y/a11y';

$mat-menu-vertical-padding: 8px !default;
Expand Down
1 change: 1 addition & 0 deletions stylelint-config.json
Expand Up @@ -49,6 +49,7 @@
"shorthand-property-no-redundant-values": true,

"property-case": "lower",
"no-duplicate-at-import-rules": true,

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

0 comments on commit 5c41410

Please sign in to comment.