Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit b6b6983

Browse files
authored
chore: Fix internal tslint errors (#4440)
Refs #4225
1 parent cabeabc commit b6b6983

File tree

51 files changed

+61
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+61
-15
lines changed

packages/mdc-auto-init/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,5 @@ mdcAutoInit.deregisterAll = function() {
121121
keys.forEach(this.deregister, this);
122122
};
123123

124+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
124125
export default mdcAutoInit;

packages/mdc-base/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ export class MDCComponent<FoundationType extends MDCFoundation> {
118118
}
119119
}
120120

121+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
121122
export default MDCComponent;

packages/mdc-base/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ export class MDCFoundation<AdapterType extends {} = {}> {
6262
}
6363
}
6464

65+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
6566
export default MDCFoundation;

packages/mdc-checkbox/foundation.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,20 +164,17 @@ export class MDCCheckboxFoundation extends MDCFoundation<MDCCheckboxAdapter> {
164164
} = MDCCheckboxFoundation.cssClasses;
165165

166166
switch (oldState) {
167-
// @ts-ignore:no-switch-case-fall-through already existing fallthrough
168167
case TRANSITION_STATE_INIT:
169168
if (newState === TRANSITION_STATE_UNCHECKED) {
170169
return '';
171170
}
172-
// fallthrough
171+
return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
173172
case TRANSITION_STATE_UNCHECKED:
174173
return newState === TRANSITION_STATE_CHECKED ? ANIM_UNCHECKED_CHECKED : ANIM_UNCHECKED_INDETERMINATE;
175174
case TRANSITION_STATE_CHECKED:
176175
return newState === TRANSITION_STATE_UNCHECKED ? ANIM_CHECKED_UNCHECKED : ANIM_CHECKED_INDETERMINATE;
177-
// TRANSITION_STATE_INDETERMINATE
178-
default:
179-
return newState === TRANSITION_STATE_CHECKED ?
180-
ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
176+
default: // TRANSITION_STATE_INDETERMINATE
177+
return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
181178
}
182179
}
183180

@@ -194,4 +191,5 @@ export class MDCCheckboxFoundation extends MDCFoundation<MDCCheckboxAdapter> {
194191
}
195192
}
196193

194+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
197195
export default MDCCheckboxFoundation;

packages/mdc-chips/chip-set/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,5 @@ export class MDCChipSetFoundation extends MDCFoundation<MDCChipSetAdapter> {
127127
}
128128
}
129129

130+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
130131
export default MDCChipSetFoundation;

packages/mdc-chips/chip/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,5 @@ export class MDCChipFoundation extends MDCFoundation<MDCChipAdapter> {
185185
}
186186
}
187187

188+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
188189
export default MDCChipFoundation;

packages/mdc-dialog/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,5 @@ export class MDCDialogFoundation extends MDCFoundation<MDCDialogAdapter> {
253253
}
254254
}
255255

256+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
256257
export default MDCDialogFoundation;

packages/mdc-dom/ponyfill.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* This makes ponyfills safer than traditional polyfills, especially for libraries like MDC.
2727
*/
2828

29-
export function closest<T extends Element>(element: Element, selector: string): T | null;
3029
export function closest(element: Element, selector: string): Element | null {
3130
if (element.closest) {
3231
return element.closest(selector);

packages/mdc-drawer/dismissible/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,5 @@ export class MDCDismissibleDrawerFoundation extends MDCFoundation<MDCDrawerAdapt
180180
}
181181
}
182182

183+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
183184
export default MDCDismissibleDrawerFoundation;

packages/mdc-drawer/modal/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ export class MDCModalDrawerFoundation extends MDCDismissibleDrawerFoundation {
4747
}
4848
}
4949

50+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
5051
export default MDCModalDrawerFoundation;

packages/mdc-floating-label/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,5 @@ export class MDCFloatingLabelFoundation extends MDCFoundation<MDCFloatingLabelAd
102102
}
103103
}
104104

105+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
105106
export default MDCFloatingLabelFoundation;

packages/mdc-form-field/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,5 @@ export class MDCFormFieldFoundation extends MDCFoundation<MDCFormFieldAdapter> {
6565
}
6666
}
6767

68+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
6869
export default MDCFormFieldFoundation;

packages/mdc-grid-list/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ export class MDCGridListFoundation extends MDCFoundation<MDCGridListAdapter> {
8181
}
8282
}
8383

84+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
8485
export default MDCGridListFoundation;

packages/mdc-icon-button/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ export class MDCIconButtonToggleFoundation extends MDCFoundation<MDCIconButtonTo
7272
}
7373
}
7474

75+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
7576
export default MDCIconButtonToggleFoundation;

packages/mdc-line-ripple/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,5 @@ export class MDCLineRippleFoundation extends MDCFoundation<MDCLineRippleAdapter>
9090
}
9191
}
9292

93+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
9394
export default MDCLineRippleFoundation;

packages/mdc-linear-progress/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ export class MDCLinearProgressFoundation extends MDCFoundation<MDCLinearProgress
111111
}
112112
}
113113

114+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
114115
export default MDCLinearProgressFoundation;

packages/mdc-list/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,4 +430,5 @@ export class MDCListFoundation extends MDCFoundation<MDCListAdapter> {
430430
}
431431
}
432432

433+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
433434
export default MDCListFoundation;

packages/mdc-menu-surface/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,4 +500,5 @@ export class MDCMenuSurfaceFoundation extends MDCFoundation<MDCMenuSurfaceAdapte
500500
}
501501
}
502502

503+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
503504
export default MDCMenuSurfaceFoundation;

packages/mdc-menu/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,5 @@ export class MDCMenuFoundation extends MDCFoundation<MDCMenuAdapter> {
137137
}
138138
}
139139

140+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
140141
export default MDCMenuFoundation;

packages/mdc-notched-outline/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,5 @@ export class MDCNotchedOutlineFoundation extends MDCFoundation<MDCNotchedOutline
8080
}
8181
}
8282

83+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
8384
export default MDCNotchedOutlineFoundation;

packages/mdc-radio/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ export class MDCRadioFoundation extends MDCFoundation<MDCRadioAdapter> {
5757
}
5858
}
5959

60+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
6061
export default MDCRadioFoundation;

packages/mdc-ripple/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,4 +527,5 @@ export class MDCRippleFoundation extends MDCFoundation<MDCRippleAdapter> {
527527
}
528528
}
529529

530+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
530531
export default MDCRippleFoundation;

packages/mdc-select/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,5 @@ export class MDCSelectFoundation extends MDCFoundation<MDCSelectAdapter> {
262262
}
263263
}
264264

265+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
265266
export default MDCSelectFoundation;

packages/mdc-select/helper-text/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,5 @@ export class MDCSelectHelperTextFoundation extends MDCFoundation<MDCSelectHelper
117117
}
118118
}
119119

120+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
120121
export default MDCSelectHelperTextFoundation;

packages/mdc-select/icon/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ export class MDCSelectIconFoundation extends MDCFoundation<MDCSelectIconAdapter>
107107
}
108108
}
109109

110+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
110111
export default MDCSelectIconFoundation;

packages/mdc-slider/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,4 +545,5 @@ export class MDCSliderFoundation extends MDCFoundation<MDCSliderAdapter> {
545545
}
546546
}
547547

548+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
548549
export default MDCSliderFoundation;

packages/mdc-snackbar/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,5 @@ export class MDCSnackbarFoundation extends MDCFoundation<MDCSnackbarAdapter> {
192192
}
193193
}
194194

195+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
195196
export default MDCSnackbarFoundation;

packages/mdc-switch/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@ export class MDCSwitchFoundation extends MDCFoundation<MDCSwitchAdapter> {
8888
}
8989
}
9090

91+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
9192
export default MDCSwitchFoundation;

packages/mdc-tab-bar/foundation.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {MDCTabDimensions, MDCTabInteractionEvent} from '@material/tab/types';
2626
import {MDCTabBarAdapter} from './adapter';
2727
import {numbers, strings} from './constants';
2828

29-
const ACCEPTABLE_KEYS: Set<string> = new Set();
29+
const ACCEPTABLE_KEYS = new Set<string>();
3030
// IE11 has no support for new Set with iterable so we need to initialize this by hand
3131
ACCEPTABLE_KEYS.add(strings.ARROW_LEFT_KEY);
3232
ACCEPTABLE_KEYS.add(strings.ARROW_RIGHT_KEY);
@@ -35,7 +35,7 @@ ACCEPTABLE_KEYS.add(strings.HOME_KEY);
3535
ACCEPTABLE_KEYS.add(strings.ENTER_KEY);
3636
ACCEPTABLE_KEYS.add(strings.SPACE_KEY);
3737

38-
const KEYCODE_MAP: Map<number, string> = new Map();
38+
const KEYCODE_MAP = new Map<number, string>();
3939
// IE11 has no support for new Map with iterable so we need to initialize this by hand
4040
KEYCODE_MAP.set(numbers.ARROW_LEFT_KEYCODE, strings.ARROW_LEFT_KEY);
4141
KEYCODE_MAP.set(numbers.ARROW_RIGHT_KEYCODE, strings.ARROW_RIGHT_KEY);
@@ -414,4 +414,5 @@ export class MDCTabBarFoundation extends MDCFoundation<MDCTabBarAdapter> {
414414
}
415415
}
416416

417+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
417418
export default MDCTabBarFoundation;

packages/mdc-tab-indicator/fading-foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ export class MDCFadingTabIndicatorFoundation extends MDCTabIndicatorFoundation {
3434
}
3535
}
3636

37+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
3738
export default MDCFadingTabIndicatorFoundation;

packages/mdc-tab-indicator/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ export abstract class MDCTabIndicatorFoundation extends MDCFoundation<MDCTabIndi
5757
abstract deactivate(): void;
5858
}
5959

60+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
6061
export default MDCTabIndicatorFoundation;

packages/mdc-tab-indicator/sliding-foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ export class MDCSlidingTabIndicatorFoundation extends MDCTabIndicatorFoundation
5656
}
5757
}
5858

59+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
5960
export default MDCSlidingTabIndicatorFoundation;

packages/mdc-tab-scroller/foundation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ export class MDCTabScrollerFoundation extends MDCFoundation<MDCTabScrollerAdapte
184184

185185
const matrixParams = match[1];
186186

187-
// @ts-ignore
187+
// tslint:disable-next-line:ban-ts-ignore "Unused vars" should be a linter warning, not a compiler error.
188+
// @ts-ignore These unused variables should retain their semantic names for clarity.
188189
const [a, b, c, d, tx, ty] = matrixParams.split(',');
189190

190191
return parseFloat(tx); // tslint:disable-line:ban
@@ -366,4 +367,5 @@ export class MDCTabScrollerFoundation extends MDCFoundation<MDCTabScrollerAdapte
366367
}
367368
}
368369

370+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
369371
export default MDCTabScrollerFoundation;

packages/mdc-tab-scroller/rtl-default-scroller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ export class MDCTabScrollerRTLDefault extends MDCTabScrollerRTL {
7070
}
7171
}
7272

73-
export default MDCTabScrollerRTLDefault; // For backward compatibility
73+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
74+
export default MDCTabScrollerRTLDefault;

packages/mdc-tab-scroller/rtl-negative-scroller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ export class MDCTabScrollerRTLNegative extends MDCTabScrollerRTL {
6767
}
6868
}
6969

70-
export default MDCTabScrollerRTLNegative; // For backward compatibility
70+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
71+
export default MDCTabScrollerRTLNegative;

packages/mdc-tab-scroller/rtl-reverse-scroller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ export class MDCTabScrollerRTLReverse extends MDCTabScrollerRTL {
6868
}
6969
}
7070

71-
export default MDCTabScrollerRTLReverse; // For backward compatibility
71+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
72+
export default MDCTabScrollerRTLReverse;

packages/mdc-tab-scroller/rtl-scroller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ export abstract class MDCTabScrollerRTL {
4444
abstract getAnimatingScrollPosition(scrollX: number, translateX: number): number;
4545
}
4646

47-
export default MDCTabScrollerRTL; // For backward compatibility
47+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
48+
export default MDCTabScrollerRTL;

packages/mdc-tab/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,5 @@ export class MDCTabFoundation extends MDCFoundation<MDCTabAdapter> {
123123
}
124124
}
125125

126+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
126127
export default MDCTabFoundation;

packages/mdc-tabs/tab-bar-scroller/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,5 @@ export class MDCTabBarScrollerFoundation extends MDCFoundation<MDCTabBarScroller
279279
}
280280
}
281281

282+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
282283
export default MDCTabBarScrollerFoundation;

packages/mdc-tabs/tab-bar/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,5 @@ export class MDCTabBarFoundation extends MDCFoundation<MDCTabBarAdapter> {
178178
}
179179
}
180180

181+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
181182
export default MDCTabBarFoundation;

packages/mdc-tabs/tab/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,5 @@ export class MDCTabFoundation extends MDCFoundation<MDCTabAdapter> {
119119
}
120120
}
121121

122+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
122123
export default MDCTabFoundation;

packages/mdc-textfield/character-counter/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ export class MDCTextFieldCharacterCounterFoundation extends MDCFoundation<MDCTex
5353
}
5454
}
5555

56+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
5657
export default MDCTextFieldCharacterCounterFoundation;

packages/mdc-textfield/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,4 +483,5 @@ export class MDCTextFieldFoundation extends MDCFoundation<MDCTextFieldAdapter> {
483483
}
484484
}
485485

486+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
486487
export default MDCTextFieldFoundation;

packages/mdc-textfield/helper-text/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,5 @@ export class MDCTextFieldHelperTextFoundation extends MDCFoundation<MDCTextField
117117
}
118118
}
119119

120+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
120121
export default MDCTextFieldHelperTextFoundation;

packages/mdc-textfield/icon/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,5 @@ export class MDCTextFieldIconFoundation extends MDCFoundation<MDCTextFieldIconAd
105105
}
106106
}
107107

108+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
108109
export default MDCTextFieldIconFoundation;

packages/mdc-toolbar/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,5 @@ export class MDCToolbarFoundation extends MDCFoundation<MDCToolbarAdapter> {
267267
}
268268
}
269269

270+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
270271
export default MDCToolbarFoundation;

packages/mdc-top-app-bar/fixed/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ export class MDCFixedTopAppBarFoundation extends MDCTopAppBarFoundation {
5858
}
5959
}
6060

61+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
6162
export default MDCFixedTopAppBarFoundation;

packages/mdc-top-app-bar/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ export class MDCTopAppBarBaseFoundation extends MDCFoundation<MDCTopAppBarAdapte
111111
}
112112
}
113113

114+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
114115
export default MDCTopAppBarBaseFoundation;

packages/mdc-top-app-bar/short/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ export class MDCShortTopAppBarFoundation extends MDCTopAppBarBaseFoundation {
7474
}
7575
}
7676

77+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
7778
export default MDCShortTopAppBarFoundation;

packages/mdc-top-app-bar/standard/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,5 @@ export class MDCTopAppBarFoundation extends MDCTopAppBarBaseFoundation {
193193
}
194194
}
195195

196+
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
196197
export default MDCTopAppBarFoundation;

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"gts/tslint.json"
55
],
66
"rules": {
7-
"no-default-export": false,
7+
"ban-ts-ignore": true,
88
"quotemark": [true, "single"],
99
"eofline": true
1010
},

0 commit comments

Comments
 (0)