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

chore: Fix internal tslint errors #4440

Merged
merged 7 commits into from
Feb 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/mdc-auto-init/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,5 @@ mdcAutoInit.deregisterAll = function() {
keys.forEach(this.deregister, this);
};

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default mdcAutoInit;
1 change: 1 addition & 0 deletions packages/mdc-base/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@ export class MDCComponent<FoundationType extends MDCFoundation> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCComponent;
1 change: 1 addition & 0 deletions packages/mdc-base/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ export class MDCFoundation<AdapterType extends {} = {}> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCFoundation;
10 changes: 4 additions & 6 deletions packages/mdc-checkbox/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,17 @@ export class MDCCheckboxFoundation extends MDCFoundation<MDCCheckboxAdapter> {
} = MDCCheckboxFoundation.cssClasses;

switch (oldState) {
// @ts-ignore:no-switch-case-fall-through already existing fallthrough
case TRANSITION_STATE_INIT:
if (newState === TRANSITION_STATE_UNCHECKED) {
return '';
}
// fallthrough
return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
case TRANSITION_STATE_UNCHECKED:
return newState === TRANSITION_STATE_CHECKED ? ANIM_UNCHECKED_CHECKED : ANIM_UNCHECKED_INDETERMINATE;
case TRANSITION_STATE_CHECKED:
return newState === TRANSITION_STATE_UNCHECKED ? ANIM_CHECKED_UNCHECKED : ANIM_CHECKED_INDETERMINATE;
// TRANSITION_STATE_INDETERMINATE
default:
return newState === TRANSITION_STATE_CHECKED ?
ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
default: // TRANSITION_STATE_INDETERMINATE
return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
}
}

Expand All @@ -194,4 +191,5 @@ export class MDCCheckboxFoundation extends MDCFoundation<MDCCheckboxAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCCheckboxFoundation;
1 change: 1 addition & 0 deletions packages/mdc-chips/chip-set/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@ export class MDCChipSetFoundation extends MDCFoundation<MDCChipSetAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCChipSetFoundation;
1 change: 1 addition & 0 deletions packages/mdc-chips/chip/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,5 @@ export class MDCChipFoundation extends MDCFoundation<MDCChipAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCChipFoundation;
1 change: 1 addition & 0 deletions packages/mdc-dialog/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,5 @@ export class MDCDialogFoundation extends MDCFoundation<MDCDialogAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCDialogFoundation;
1 change: 0 additions & 1 deletion packages/mdc-dom/ponyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
* This makes ponyfills safer than traditional polyfills, especially for libraries like MDC.
*/

export function closest<T extends Element>(element: Element, selector: string): T | null;
export function closest(element: Element, selector: string): Element | null {
if (element.closest) {
return element.closest(selector);
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-drawer/dismissible/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ export class MDCDismissibleDrawerFoundation extends MDCFoundation<MDCDrawerAdapt
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCDismissibleDrawerFoundation;
1 change: 1 addition & 0 deletions packages/mdc-drawer/modal/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ export class MDCModalDrawerFoundation extends MDCDismissibleDrawerFoundation {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCModalDrawerFoundation;
1 change: 1 addition & 0 deletions packages/mdc-floating-label/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,5 @@ export class MDCFloatingLabelFoundation extends MDCFoundation<MDCFloatingLabelAd
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCFloatingLabelFoundation;
1 change: 1 addition & 0 deletions packages/mdc-form-field/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ export class MDCFormFieldFoundation extends MDCFoundation<MDCFormFieldAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCFormFieldFoundation;
1 change: 1 addition & 0 deletions packages/mdc-grid-list/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ export class MDCGridListFoundation extends MDCFoundation<MDCGridListAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCGridListFoundation;
1 change: 1 addition & 0 deletions packages/mdc-icon-button/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ export class MDCIconButtonToggleFoundation extends MDCFoundation<MDCIconButtonTo
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCIconButtonToggleFoundation;
1 change: 1 addition & 0 deletions packages/mdc-line-ripple/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ export class MDCLineRippleFoundation extends MDCFoundation<MDCLineRippleAdapter>
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCLineRippleFoundation;
1 change: 1 addition & 0 deletions packages/mdc-linear-progress/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@ export class MDCLinearProgressFoundation extends MDCFoundation<MDCLinearProgress
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCLinearProgressFoundation;
1 change: 1 addition & 0 deletions packages/mdc-list/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,5 @@ export class MDCListFoundation extends MDCFoundation<MDCListAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCListFoundation;
1 change: 1 addition & 0 deletions packages/mdc-menu-surface/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,4 +500,5 @@ export class MDCMenuSurfaceFoundation extends MDCFoundation<MDCMenuSurfaceAdapte
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCMenuSurfaceFoundation;
1 change: 1 addition & 0 deletions packages/mdc-menu/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,5 @@ export class MDCMenuFoundation extends MDCFoundation<MDCMenuAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCMenuFoundation;
1 change: 1 addition & 0 deletions packages/mdc-notched-outline/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ export class MDCNotchedOutlineFoundation extends MDCFoundation<MDCNotchedOutline
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCNotchedOutlineFoundation;
1 change: 1 addition & 0 deletions packages/mdc-radio/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ export class MDCRadioFoundation extends MDCFoundation<MDCRadioAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCRadioFoundation;
1 change: 1 addition & 0 deletions packages/mdc-ripple/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,4 +527,5 @@ export class MDCRippleFoundation extends MDCFoundation<MDCRippleAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCRippleFoundation;
1 change: 1 addition & 0 deletions packages/mdc-select/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,5 @@ export class MDCSelectFoundation extends MDCFoundation<MDCSelectAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCSelectFoundation;
1 change: 1 addition & 0 deletions packages/mdc-select/helper-text/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,5 @@ export class MDCSelectHelperTextFoundation extends MDCFoundation<MDCSelectHelper
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCSelectHelperTextFoundation;
1 change: 1 addition & 0 deletions packages/mdc-select/icon/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ export class MDCSelectIconFoundation extends MDCFoundation<MDCSelectIconAdapter>
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCSelectIconFoundation;
1 change: 1 addition & 0 deletions packages/mdc-slider/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,4 +545,5 @@ export class MDCSliderFoundation extends MDCFoundation<MDCSliderAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCSliderFoundation;
1 change: 1 addition & 0 deletions packages/mdc-snackbar/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,5 @@ export class MDCSnackbarFoundation extends MDCFoundation<MDCSnackbarAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCSnackbarFoundation;
1 change: 1 addition & 0 deletions packages/mdc-switch/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@ export class MDCSwitchFoundation extends MDCFoundation<MDCSwitchAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCSwitchFoundation;
5 changes: 3 additions & 2 deletions packages/mdc-tab-bar/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {MDCTabDimensions, MDCTabInteractionEvent} from '@material/tab/types';
import {MDCTabBarAdapter} from './adapter';
import {numbers, strings} from './constants';

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

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

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabBarFoundation;
1 change: 1 addition & 0 deletions packages/mdc-tab-indicator/fading-foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ export class MDCFadingTabIndicatorFoundation extends MDCTabIndicatorFoundation {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCFadingTabIndicatorFoundation;
1 change: 1 addition & 0 deletions packages/mdc-tab-indicator/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ export abstract class MDCTabIndicatorFoundation extends MDCFoundation<MDCTabIndi
abstract deactivate(): void;
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabIndicatorFoundation;
1 change: 1 addition & 0 deletions packages/mdc-tab-indicator/sliding-foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ export class MDCSlidingTabIndicatorFoundation extends MDCTabIndicatorFoundation
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCSlidingTabIndicatorFoundation;
4 changes: 3 additions & 1 deletion packages/mdc-tab-scroller/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ export class MDCTabScrollerFoundation extends MDCFoundation<MDCTabScrollerAdapte

const matrixParams = match[1];

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

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

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabScrollerFoundation;
3 changes: 2 additions & 1 deletion packages/mdc-tab-scroller/rtl-default-scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ export class MDCTabScrollerRTLDefault extends MDCTabScrollerRTL {
}
}

export default MDCTabScrollerRTLDefault; // For backward compatibility
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabScrollerRTLDefault;
3 changes: 2 additions & 1 deletion packages/mdc-tab-scroller/rtl-negative-scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ export class MDCTabScrollerRTLNegative extends MDCTabScrollerRTL {
}
}

export default MDCTabScrollerRTLNegative; // For backward compatibility
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabScrollerRTLNegative;
3 changes: 2 additions & 1 deletion packages/mdc-tab-scroller/rtl-reverse-scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ export class MDCTabScrollerRTLReverse extends MDCTabScrollerRTL {
}
}

export default MDCTabScrollerRTLReverse; // For backward compatibility
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabScrollerRTLReverse;
3 changes: 2 additions & 1 deletion packages/mdc-tab-scroller/rtl-scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ export abstract class MDCTabScrollerRTL {
abstract getAnimatingScrollPosition(scrollX: number, translateX: number): number;
}

export default MDCTabScrollerRTL; // For backward compatibility
// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabScrollerRTL;
1 change: 1 addition & 0 deletions packages/mdc-tab/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,5 @@ export class MDCTabFoundation extends MDCFoundation<MDCTabAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabFoundation;
1 change: 1 addition & 0 deletions packages/mdc-tabs/tab-bar-scroller/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,5 @@ export class MDCTabBarScrollerFoundation extends MDCFoundation<MDCTabBarScroller
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabBarScrollerFoundation;
1 change: 1 addition & 0 deletions packages/mdc-tabs/tab-bar/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,5 @@ export class MDCTabBarFoundation extends MDCFoundation<MDCTabBarAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabBarFoundation;
1 change: 1 addition & 0 deletions packages/mdc-tabs/tab/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,5 @@ export class MDCTabFoundation extends MDCFoundation<MDCTabAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTabFoundation;
1 change: 1 addition & 0 deletions packages/mdc-textfield/character-counter/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ export class MDCTextFieldCharacterCounterFoundation extends MDCFoundation<MDCTex
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTextFieldCharacterCounterFoundation;
1 change: 1 addition & 0 deletions packages/mdc-textfield/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,4 +483,5 @@ export class MDCTextFieldFoundation extends MDCFoundation<MDCTextFieldAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTextFieldFoundation;
1 change: 1 addition & 0 deletions packages/mdc-textfield/helper-text/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,5 @@ export class MDCTextFieldHelperTextFoundation extends MDCFoundation<MDCTextField
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTextFieldHelperTextFoundation;
1 change: 1 addition & 0 deletions packages/mdc-textfield/icon/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ export class MDCTextFieldIconFoundation extends MDCFoundation<MDCTextFieldIconAd
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTextFieldIconFoundation;
1 change: 1 addition & 0 deletions packages/mdc-toolbar/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,5 @@ export class MDCToolbarFoundation extends MDCFoundation<MDCToolbarAdapter> {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCToolbarFoundation;
1 change: 1 addition & 0 deletions packages/mdc-top-app-bar/fixed/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ export class MDCFixedTopAppBarFoundation extends MDCTopAppBarFoundation {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCFixedTopAppBarFoundation;
1 change: 1 addition & 0 deletions packages/mdc-top-app-bar/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@ export class MDCTopAppBarBaseFoundation extends MDCFoundation<MDCTopAppBarAdapte
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTopAppBarBaseFoundation;
1 change: 1 addition & 0 deletions packages/mdc-top-app-bar/short/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ export class MDCShortTopAppBarFoundation extends MDCTopAppBarBaseFoundation {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCShortTopAppBarFoundation;
1 change: 1 addition & 0 deletions packages/mdc-top-app-bar/standard/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,5 @@ export class MDCTopAppBarFoundation extends MDCTopAppBarBaseFoundation {
}
}

// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.
export default MDCTopAppBarFoundation;
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"gts/tslint.json"
],
"rules": {
"no-default-export": false,
"ban-ts-ignore": true,
"quotemark": [true, "single"],
"eofline": true
},
Expand Down