From 34fe17e87e559b0c86affc4880ae531b2454bf70 Mon Sep 17 00:00:00 2001 From: Rafael Santana Date: Wed, 11 Apr 2018 14:39:55 -0300 Subject: [PATCH] chore(calendar): remove explicit preserveWhitespaces setting (#10761) --- src/lib/datepicker/calendar.ts | 1 - tslint.json | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/datepicker/calendar.ts b/src/lib/datepicker/calendar.ts index 9472ea63dd0..815151fc9cb 100644 --- a/src/lib/datepicker/calendar.ts +++ b/src/lib/datepicker/calendar.ts @@ -40,7 +40,6 @@ import {MatYearView} from './year-view'; selector: 'mat-calendar-header', templateUrl: 'calendar-header.html', encapsulation: ViewEncapsulation.None, - preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatCalendarHeader implements OnDestroy { diff --git a/tslint.json b/tslint.json index dcedaa2bdd6..c3a9ad2c6e4 100644 --- a/tslint.json +++ b/tslint.json @@ -95,11 +95,12 @@ ], "validate-decorators": [true, { "Component": { - "encapsulation": "\\.None$", - "moduleId": "^module\\.id$", - "changeDetection": "\\.OnPush$", + "!host": "\\[class\\]", + "!preserveWhitespaces": ".*", "!styles": ".*", - "!host": "\\[class\\]" + "changeDetection": "\\.OnPush$", + "encapsulation": "\\.None$", + "moduleId": "^module\\.id$" }, "Directive": { "!host": "\\[class\\]"