build: enable TSLint on the packages folder (#18459)

porting PRs #18392 and #18441 to 4.x
This commit is contained in:
Victor Berchet
2017-08-02 15:23:33 -07:00
committed by GitHub
parent 24db1ed938
commit baf4ce0dd0
48 changed files with 133 additions and 112 deletions

View File

@ -45,11 +45,10 @@ export class ApplicationInitStatus {
const asyncInitPromises: Promise<any>[] = [];
const complete =
() => {
this._done = true;
this.resolve();
}
const complete = () => {
this._done = true;
this.resolve();
};
if (this.appInits) {
for (let i = 0; i < this.appInits.length; i++) {

View File

@ -52,11 +52,9 @@ export class DefaultIterableDiffer<V> implements IterableDiffer<V>, IterableChan
// Keeps track of records where custom track by is the same, but item identity has changed
private _identityChangesHead: IterableChangeRecord_<V>|null = null;
private _identityChangesTail: IterableChangeRecord_<V>|null = null;
private _trackByFn: TrackByFunction<V>
private _trackByFn: TrackByFunction<V>;
constructor(trackByFn?: TrackByFunction<V>) {
this._trackByFn = trackByFn || trackByIdentity;
}
constructor(trackByFn?: TrackByFunction<V>) { this._trackByFn = trackByFn || trackByIdentity; }
get collection() { return this._collection; }

View File

@ -196,7 +196,7 @@ function renderEventHandlerClosure(view: ViewData, index: number, eventName: str
// Attention: Don't rethrow, to keep in sync with directive events.
view.root.errorHandler.handleError(e);
}
}
};
}

View File

@ -145,7 +145,7 @@ function eventHandlerClosure(view: ViewData, index: number, eventName: string) {
// Attention: Don't rethrow, as it would cancel Observable subscriptions!
view.root.errorHandler.handleError(e);
}
}
};
}
export function checkAndUpdateDirectiveInline(

View File

@ -466,6 +466,7 @@ export function createNgModuleRef(
class NgModuleRef_ implements NgModuleData, InternalNgModuleRef<any> {
private _destroyListeners: (() => void)[] = [];
private _destroyed: boolean = false;
// tslint:disable-next-line
public _providers: any[];
constructor(