From bef9a5ea4e48af330187650c2c2eabb0999d303f Mon Sep 17 00:00:00 2001 From: crisbeto Date: Thu, 6 Sep 2018 22:00:50 +0300 Subject: [PATCH] build: don't allow trailing whitespace in CSS files Similar to TS files, doesn't allow trailing whitespace in CSS. --- src/demo-app/screen-type/screen-type-demo.scss | 2 +- .../expansion-steps/expansion-steps-example.css | 2 +- stylelint-config.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/demo-app/screen-type/screen-type-demo.scss b/src/demo-app/screen-type/screen-type-demo.scss index cf80ca7910a9..e206b7d99fff 100644 --- a/src/demo-app/screen-type/screen-type-demo.scss +++ b/src/demo-app/screen-type/screen-type-demo.scss @@ -10,7 +10,7 @@ .mat-figure { flex-direction: column; } - + &.active { background: rgba(0, 0, 0, 0.12); } diff --git a/src/material-examples/expansion-steps/expansion-steps-example.css b/src/material-examples/expansion-steps/expansion-steps-example.css index 7a97afef2acc..fb90e98d9c3e 100644 --- a/src/material-examples/expansion-steps/expansion-steps-example.css +++ b/src/material-examples/expansion-steps/expansion-steps-example.css @@ -1,4 +1,4 @@ -.example-headers-align .mat-expansion-panel-header-title, +.example-headers-align .mat-expansion-panel-header-title, .example-headers-align .mat-expansion-panel-header-description { flex-basis: 0; } diff --git a/stylelint-config.json b/stylelint-config.json index a0e573828c86..88f15dec04ed 100644 --- a/stylelint-config.json +++ b/stylelint-config.json @@ -83,6 +83,7 @@ "selector-type-case": "lower", "selector-max-id": 0, "no-missing-end-of-source-newline": true, + "no-eol-whitespace": true, "max-line-length": 100 } }