build: enable TSLint on the packages folder (#18459)
porting PRs #18392 and #18441 to 4.x
This commit is contained in:
@ -444,8 +444,11 @@ function match(segmentGroup: UrlSegmentGroup, route: Route, segments: UrlSegment
|
||||
|
||||
if (!res) {
|
||||
return {
|
||||
matched: false, consumedSegments: <any[]>[], lastChild: 0, positionalParamSegments: {},
|
||||
}
|
||||
matched: false,
|
||||
consumedSegments: <any[]>[],
|
||||
lastChild: 0,
|
||||
positionalParamSegments: {},
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -1128,7 +1128,7 @@ class ActivateRoutes {
|
||||
const children: {[outletName: string]: any} = nodeChildrenAsMap(route);
|
||||
const contexts = route.value.component ? context.children : parentContexts;
|
||||
|
||||
forEach(children, (v: any, k: string) => {this.deactivateRouteAndItsChildren(v, contexts)});
|
||||
forEach(children, (v: any, k: string) => this.deactivateRouteAndItsChildren(v, contexts));
|
||||
|
||||
if (context.outlet) {
|
||||
// Destroy the component
|
||||
|
@ -64,7 +64,7 @@ export function forEach<K, V>(map: {[key: string]: V}, callback: (v: V, k: strin
|
||||
export function waitForMap<A, B>(
|
||||
obj: {[k: string]: A}, fn: (k: string, a: A) => Observable<B>): Observable<{[k: string]: B}> {
|
||||
if (Object.keys(obj).length === 0) {
|
||||
return of ({})
|
||||
return of ({});
|
||||
}
|
||||
|
||||
const waitHead: Observable<B>[] = [];
|
||||
|
@ -1070,7 +1070,7 @@ describe('Integration', () => {
|
||||
return map.call(of (null), () => {
|
||||
log.push('resolver2');
|
||||
observer.next(null);
|
||||
observer.complete()
|
||||
observer.complete();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user