chore: update tslint to v5 and fix newly surfaced issues (#3958)

This commit is contained in:
Jeremy Elbourn
2017-04-07 16:59:03 -06:00
committed by GitHub
parent f396657b04
commit 94320c4e68
15 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -109,7 +109,7 @@
"stylelint": "^7.8.0",
"travis-after-modes": "0.0.7",
"ts-node": "^3.0.0",
"tslint": "^4.4.2",
"tslint": "^5.0.0",
"tslint-no-unused-var": "0.0.6",
"typescript": "~2.1.1",
"uglify-js": "^2.8.14",
+1 -1
View File
@@ -109,7 +109,7 @@ function getLiveElement(): Element {
@Component({template: `<button (click)="announceText('Test')">Announce</button>`})
class TestApp {
constructor(public live: LiveAnnouncer) { };
constructor(public live: LiveAnnouncer) { }
announceText(message: string) {
this.live.announce(message);
+1 -1
View File
@@ -66,7 +66,7 @@ export class LiveAnnouncer {
export function LIVE_ANNOUNCER_PROVIDER_FACTORY(parentDispatcher: LiveAnnouncer, liveElement: any) {
return parentDispatcher || new LiveAnnouncer(liveElement);
};
}
export const LIVE_ANNOUNCER_PROVIDER = {
// If there is already a LiveAnnouncer available, use that. Otherwise, provide a new one.
+1 -1
View File
@@ -172,7 +172,7 @@ export class MdOption {
/** Emits the selection change event. */
private _emitSelectionChangeEvent(isUserInput = false): void {
this.onSelectionChange.emit(new MdOptionSelectionChange(this, isUserInput));
};
}
}
+1 -1
View File
@@ -57,7 +57,7 @@ export class OverlayContainer {
export function OVERLAY_CONTAINER_PROVIDER_FACTORY(parentContainer: OverlayContainer) {
return parentContainer || new OverlayContainer();
};
}
export const OVERLAY_CONTAINER_PROVIDER = {
// If there is already an OverlayContainer available, use that. Otherwise, provide a new one.
@@ -41,7 +41,7 @@ export class MdPseudoCheckbox {
/** Color of the checkbox. */
@Input()
get color(): string { return this._color; };
get color(): string { return this._color; }
set color(value: string) {
if (value) {
let nativeElement = this._elementRef.nativeElement;
@@ -464,7 +464,7 @@ class PlainButton {
template: `<button cdkMonitorElementFocus (cdkFocusChange)="focusChanged($event)"></button>`
})
class ButtonWithFocusClasses {
focusChanged(origin: FocusOrigin) {};
focusChanged(origin: FocusOrigin) {}
}
@@ -5,4 +5,4 @@
export function wrappedErrorMessage(e: Error) {
const escapedMessage = e.message.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
return new RegExp(escapedMessage);
};
}
+1 -1
View File
@@ -9,7 +9,7 @@ export interface DialogPosition {
bottom?: string;
left?: string;
right?: string;
};
}
/**
* Configuration for opening a modal dialog with the MdDialog service.
+1 -1
View File
@@ -250,7 +250,7 @@ export class MdIcon implements OnChanges, OnInit, AfterViewChecked {
export function ICON_REGISTRY_PROVIDER_FACTORY(
parentRegistry: MdIconRegistry, http: Http, sanitizer: DomSanitizer) {
return parentRegistry || new MdIconRegistry(http, sanitizer);
};
}
export const ICON_REGISTRY_PROVIDER = {
// If there is already an MdIconRegistry available, use that. Otherwise, provide a new one.
+1 -1
View File
@@ -116,7 +116,7 @@ const textareaStyleReset = `
@Component({
template: `
<textarea mdTextareaAutosize [mdAutosizeMinRows]="minRows" [mdAutosizeMaxRows]="maxRows"
<textarea mdTextareaAutosize [mdAutosizeMinRows]="minRows" [mdAutosizeMaxRows]="maxRows"
#autosize="mdTextareaAutosize">
{{content}}
</textarea>`,
+1 -1
View File
@@ -52,7 +52,7 @@ export class MdInputModule {
}
export * from './autosize'
export * from './autosize';
export * from './input-container';
export * from './input-container-errors';
+2 -2
View File
@@ -143,7 +143,7 @@ export class MdInputDirective {
/** Unique id of the element. */
@Input()
get id() { return this._id; };
get id() { return this._id; }
set id(value: string) {this._id = value || this._uid; }
/** Placeholder attribute of the element. */
@@ -299,7 +299,7 @@ export class MdInputContainer implements AfterViewInit, AfterContentInit {
set dividerColor(value) { this.color = value; }
/** Whether the floating label should always float or not. */
get _shouldAlwaysFloat() { return this._floatPlaceholder === 'always'; };
get _shouldAlwaysFloat() { return this._floatPlaceholder === 'always'; }
/** Whether the placeholder can float or not. */
get _canPlaceholderFloat() { return this._floatPlaceholder !== 'never'; }
+1 -1
View File
@@ -161,7 +161,7 @@ export class MdMenuTrigger implements AfterViewInit, OnDestroy {
if (!this._openedByMouse) {
this.menu.focusFirstItem();
}
};
}
/**
* This method resets the menu when it's closed, most importantly restoring
+2 -2
View File
@@ -1263,8 +1263,8 @@ class SliderWithValueGreaterThanMax { }
styles: [styles],
})
class SliderWithChangeHandler {
onChange() { };
onInput() { };
onChange() { }
onInput() { }
}
@Component({