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