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\\]"