From 7c4fa66d530eb76df79f9a4ee121ac261a157013 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 7 Sep 2018 01:14:43 +0300 Subject: [PATCH] build: don't allow trailing whitespace in CSS files (#13014) 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 cf80ca7910a..e206b7d99ff 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 7a97afef2ac..fb90e98d9c3 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 a0e573828c8..88f15dec04e 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 } }