Prettier upgrade and e2e type checks (#1522)

* upgrade prettier

* noImplicitAny rule

* fix type

* update tsconfig

* upgrade to 150 print width
This commit is contained in:
Denys Vuika
2020-07-14 10:03:23 +01:00
committed by GitHub
parent 32793ea7b0
commit ddc6f36ab4
339 changed files with 5170 additions and 8763 deletions

View File

@@ -23,13 +23,7 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
import {
Directive,
Input,
OnInit,
OnDestroy,
HostListener
} from '@angular/core';
import { Directive, Input, OnInit, OnDestroy, HostListener } from '@angular/core';
import { Router, NavigationEnd, PRIMARY_OUTLET } from '@angular/router';
import { filter, takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';
@@ -64,7 +58,7 @@ export class MenuPanelDirective implements OnInit, OnDestroy {
hasActiveLinks() {
if (this.acaMenuPanel && this.acaMenuPanel.children) {
return this.acaMenuPanel.children.some(child => {
return this.acaMenuPanel.children.some((child) => {
return this.router.url.startsWith(child.url || child.action.payload);
});
}
@@ -76,7 +70,7 @@ export class MenuPanelDirective implements OnInit, OnDestroy {
this.router.events
.pipe(
filter(event => event instanceof NavigationEnd),
filter((event) => event instanceof NavigationEnd),
takeUntil(this.onDestroy$)
)
.subscribe(() => {
@@ -99,7 +93,7 @@ export class MenuPanelDirective implements OnInit, OnDestroy {
const urlSegments = urlSegmentGroup.segments;
return urlSegments.reduce(function(acc, item) {
return urlSegments.reduce(function (acc, item) {
acc.push(item.path, item.parameters);
return acc;
}, []);