Skip to content

Commit 14d5544

Browse files
vchimevvakrilov
authored and
vakrilov
committed
chore: tslint errors
1 parent 5004fb1 commit 14d5544

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

Diff for: nativescript-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"url": "https://github.com/NativeScript/nativescript-angular.git"
3030
},
3131
"scripts": {
32-
"tslint": "tslint --project tsconfig.json --config tslint.json --type-check",
32+
"tslint": "tslint --project tsconfig.json --config tslint.json",
3333
"postinstall": "node postinstall.js",
3434
"tsc": "tsc -p tsconfig.json",
3535
"tsc-w": "tsc -p tsconfig.json -w",

Diff for: nativescript-angular/platform-common.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
import { DOCUMENT } from "@angular/common";
2424

2525
import { bootstrapLog, bootstrapLogError } from "./trace";
26-
import { PAGE_FACTORY, PageFactory, defaultPageFactoryProvider, setRootPage } from "./platform-providers";
26+
import { defaultPageFactoryProvider, setRootPage } from "./platform-providers";
2727
import { AppHostView } from "./app-host-view";
2828

2929
import {
@@ -34,10 +34,7 @@ import {
3434
off,
3535
launchEvent,
3636
LaunchEventData,
37-
ios as iosApp,
3837
} from "tns-core-modules/application";
39-
import { NavigationEntry } from "tns-core-modules/ui/frame";
40-
import { Page } from "tns-core-modules/ui/page";
4138
import { TextView } from "tns-core-modules/ui/text-view";
4239

4340
import "nativescript-intl";

Diff for: nativescript-angular/renderer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { View } from "tns-core-modules/ui/core/view";
99
import { addCss } from "tns-core-modules/application";
1010
import { profile } from "tns-core-modules/profiling";
1111

12-
import { APP_ROOT_VIEW, DEVICE, getRootPage, FrameService } from "./platform-providers";
12+
import { APP_ROOT_VIEW, DEVICE, getRootPage } from "./platform-providers";
1313
import { ViewUtil } from "./view-util";
1414
import { NgView, InvisibleNode } from "./element-registry";
1515
import { rendererLog as traceLog } from "./trace";

Diff for: nativescript-angular/router/ns-router-link.ts

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
import { Directive, HostListener, Input, Optional, OnChanges } from "@angular/core";
1+
import { Directive, HostListener, Input } from "@angular/core";
22
import { NavigationExtras } from "@angular/router";
3-
import { ActivatedRoute, Router, UrlTree, } from "@angular/router";
3+
import { ActivatedRoute, Router, UrlTree } from "@angular/router";
44
import { routerLog } from "../trace";
5-
import { PageRoute } from "./page-router-outlet";
65
import { RouterExtensions } from "./router-extensions";
76
import { NavigationOptions } from "./ns-location-strategy";
87
import { NavigationTransition } from "tns-core-modules/ui/frame";
98
import { isString } from "tns-core-modules/utils/types";
109

1110
// Copied from "@angular/router/src/config"
12-
export type QueryParamsHandling = 'merge' | 'preserve' | '';
11+
export type QueryParamsHandling = "merge" | "preserve" | "";
1312

1413
/**
1514
* The nsRouterLink directive lets you link to specific parts of your app.
@@ -70,7 +69,10 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
7069

7170
@HostListener("tap")
7271
onTap() {
73-
routerLog(`nsRouterLink.tapped: ${this.commands} clear: ${this.clearHistory} transition: ${JSON.stringify(this.pageTransition)} duration: ${this.pageTransitionDuration}`);
72+
routerLog(`nsRouterLink.tapped: ${this.commands}
73+
clear: ${this.clearHistory}
74+
transition: ${JSON.stringify(this.pageTransition)}
75+
duration: ${this.pageTransitionDuration}`);
7476

7577
const extras = this.getExtras();
7678
this.navigator.navigateByUrl(this.urlTree, extras);
@@ -98,7 +100,7 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
98100
preserveFragment: attrBoolValue(this.preserveFragment),
99101
});
100102

101-
routerLog(`nsRouterLink urlTree created: ${urlTree}`)
103+
routerLog(`nsRouterLink urlTree created: ${urlTree}`);
102104

103105
return urlTree;
104106
}
@@ -127,7 +129,7 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
127129
}
128130

129131
let duration = +this.pageTransitionDuration;
130-
if(!isNaN(duration)) {
132+
if (!isNaN(duration)) {
131133
transition.duration = duration;
132134
}
133135

@@ -136,5 +138,5 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
136138
}
137139

138140
function attrBoolValue(s: any): boolean {
139-
return s === '' || !!s;
141+
return s === "" || !!s;
140142
}

0 commit comments

Comments
 (0)