Skip to content

Commit 34fe17e

Browse files
rafaelss95tinayuangao
authored andcommitted
chore(calendar): remove explicit preserveWhitespaces setting (#10761)
1 parent e85547a commit 34fe17e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib/datepicker/calendar.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {MatYearView} from './year-view';
4040
selector: 'mat-calendar-header',
4141
templateUrl: 'calendar-header.html',
4242
encapsulation: ViewEncapsulation.None,
43-
preserveWhitespaces: false,
4443
changeDetection: ChangeDetectionStrategy.OnPush,
4544
})
4645
export class MatCalendarHeader<D> implements OnDestroy {

tslint.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@
9595
],
9696
"validate-decorators": [true, {
9797
"Component": {
98-
"encapsulation": "\\.None$",
99-
"moduleId": "^module\\.id$",
100-
"changeDetection": "\\.OnPush$",
98+
"!host": "\\[class\\]",
99+
"!preserveWhitespaces": ".*",
101100
"!styles": ".*",
102-
"!host": "\\[class\\]"
101+
"changeDetection": "\\.OnPush$",
102+
"encapsulation": "\\.None$",
103+
"moduleId": "^module\\.id$"
103104
},
104105
"Directive": {
105106
"!host": "\\[class\\]"

0 commit comments

Comments
 (0)