From ece2d4f9d18b0c839979d944d30fdcd9d3f155fc Mon Sep 17 00:00:00 2001 From: Rafael Date: Sun, 8 Apr 2018 14:18:01 -0300 Subject: [PATCH] chore(calendar): remove explicit preserveWhitespaces setting --- 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 9472ea63dd03..815151fc9cb2 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 5527f78619ba..30552e3ca2b1 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\\]"