build: enable TSLint on the packages folder (#18459)
porting PRs #18392 and #18441 to 4.x
This commit is contained in:
@ -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++) {
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user