integrate Prettier with tslint (#1419)

* integrate prettier with tslint

* remove obsolte scripts

* update tsconfig

* fix lint issues

* fix lint errors

* more rules and fixes

* kebab case and lint fixes

* update helpers

* update util
This commit is contained in:
Denys Vuika
2020-04-19 23:29:20 +01:00
committed by GitHub
parent 6a84717a00
commit bf509843b7
96 changed files with 829 additions and 559 deletions

View File

@@ -38,7 +38,7 @@ describe('AppRouteReuseStrategy', () => {
});
it('should allow detach if route is configured to be reused', () => {
const route = <any>{
const route: any = {
routeConfig: {
data: {
reuse: true
@@ -46,11 +46,11 @@ describe('AppRouteReuseStrategy', () => {
path: 'tested-path'
}
};
expect(appRouteReuse.shouldDetach(<any>route)).toBe(true);
expect(appRouteReuse.shouldDetach(route)).toBe(true);
});
it('should store on routeCache', () => {
const route = <any>{
const route: any = {
url: [],
routeConfig: {
data: {
@@ -63,11 +63,11 @@ describe('AppRouteReuseStrategy', () => {
children: []
};
appRouteReuse.store(route, { route: {} });
expect(appRouteReuse.shouldAttach(<any>route)).toBe(true);
expect(appRouteReuse.shouldAttach(route)).toBe(true);
});
it('should clear routeCache on resetCache', () => {
const route = <any>{
const route: any = {
url: [],
routeConfig: {
data: {
@@ -81,6 +81,6 @@ describe('AppRouteReuseStrategy', () => {
};
appRouteReuse.store(route, { route: {} });
appRouteReuse.resetCache();
expect(appRouteReuse.shouldAttach(<any>route)).toBe(false);
expect(appRouteReuse.shouldAttach(route)).toBe(false);
});
});