Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit b2f4b22

Browse files
author
Elena Hristova
committed
fix lint errors
1 parent 82543ce commit b2f4b22

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

demo-angular/src/app/home/home.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export class HomeComponent implements OnInit {
3232
console.log("Error: " + (e.message || e));
3333
});
3434
}
35-
35+
3636
public buttonGetLocationTap() {
37-
var that = this;
37+
let that = this;
3838
geolocation.getCurrentLocation({
3939
desiredAccuracy: Accuracy.high,
4040
maximumAge: 5000,
@@ -47,10 +47,10 @@ export class HomeComponent implements OnInit {
4747
console.log("Error: " + (e.message || e));
4848
});
4949
}
50-
50+
5151
public buttonStartTap() {
5252
try {
53-
var that = this;
53+
let that = this;
5454
this.watchIds.push(geolocation.watchLocation(
5555
function (loc) {
5656
if (loc) {
@@ -70,15 +70,15 @@ export class HomeComponent implements OnInit {
7070
console.log("Error: " + ex.message);
7171
}
7272
}
73-
73+
7474
public buttonStopTap() {
7575
let watchId = this.watchIds.pop();
7676
while (watchId != null) {
7777
geolocation.clearWatch(watchId);
7878
watchId = this.watchIds.pop();
7979
}
8080
}
81-
81+
8282
public buttonClearTap() {
8383
this.locations.splice(0, this.locations.length);
8484
}

demo-vue/app/components/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
});
4646
},
4747
buttonGetLocationTap: function() {
48-
var that = this;
48+
let that = this;
4949
geolocation.getCurrentLocation({
5050
desiredAccuracy: Accuracy.high,
5151
maximumAge: 5000,
@@ -60,7 +60,7 @@
6060
},
6161
buttonStartTap: function() {
6262
try {
63-
var that = this;
63+
let that = this;
6464
this.watchIds.push(geolocation.watchLocation(
6565
function (loc) {
6666
if (loc) {

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build": "npm i && tsc",
1616
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
1717
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
18-
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
18+
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"*demo*/platforms/**\"",
1919
"plugin.link": "npm link && cd ../demo && npm link nativescript-geolocation && cd ../src",
2020
"plugin.tscwatch": "npm run tsc -- -w",
2121
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",

0 commit comments

Comments
 (0)