Skip to content

Commit f0c28d1

Browse files
committed
refactor: fix lint errors
1 parent e4a116a commit f0c28d1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

nativescript-angular/directives/list-view-comp.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class ListViewComponent implements DoCheck, OnDestroy, AfterContentInit {
168168
if (!viewRef) {
169169
listViewError("ViewReference not found for item " + index + ". View recycling is not working");
170170
}
171-
};
171+
}
172172

173173
if (!viewRef) {
174174
listViewLog("onItemLoading: " + index + " - Creating view from template");
@@ -234,7 +234,8 @@ function getSingleViewRecursive(nodes: Array<any>, nestLevel: number): View {
234234
export interface ComponentView {
235235
rootNodes: Array<any>;
236236
destroy(): void;
237-
};
237+
}
238+
238239
export type RootLocator = (nodes: Array<any>, nestLevel: number) => View;
239240

240241
export function getItemViewRoot(viewRef: ComponentView, rootLocator: RootLocator = getSingleViewRecursive): View {

nativescript-angular/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export { NSHttp } from "./http/ns-http";
1111

1212
export function nsHttpFactory(backend, options, nsFileSystem) {
1313
return new NSHttp(backend, options, nsFileSystem);
14-
};
14+
}
1515

1616
export function nsXSRFStrategyFactory() {
1717
return new NSXSRFStrategy();
18-
};
18+
}
1919

2020
@NgModule({
2121
providers: [

nativescript-angular/nativescript.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { NS_DIRECTIVES } from "./directives";
2626

2727
export function errorHandlerFactory() {
2828
return new ErrorHandler(true);
29-
};
29+
}
3030

3131
@NgModule({
3232
declarations: [

nativescript-angular/platform-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class NativeScriptPlatformRef extends PlatformRef {
129129

130130
get injector(): Injector {
131131
return this.platform.injector;
132-
};
132+
}
133133

134134
destroy(): void {
135135
this.platform.destroy();

nativescript-angular/tslint.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"no-string-literal": false,
6363
"no-switch-case-fall-through": true,
6464
"no-unused-expression": true,
65-
"no-use-before-declare": true,
6665
"no-var-keyword": true,
6766
"radix": false,
6867
"switch-default": true,

0 commit comments

Comments
 (0)