Skip to content

Commit fb557b9

Browse files
author
Veeck
committed
Update ignored files for eslint
1 parent b56a930 commit fb557b9

File tree

5 files changed

+19
-24
lines changed

5 files changed

+19
-24
lines changed

.eslintignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
modules/default/alert/notificationFx.js
2-
modules/default/alert/modernizr.custom.js
3-
modules/default/alert/classie.js
1+
modules/default/calendar/vendor/*

modules/default/weather/providers/darksky.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ WeatherProvider.register("darksky", {
1616
providerName: "Dark Sky",
1717

1818
units: {
19-
imperial: 'us',
20-
metric: 'si'
19+
imperial: "us",
20+
metric: "si"
2121
},
2222

2323
fetchCurrentWeather() {
@@ -33,7 +33,7 @@ WeatherProvider.register("darksky", {
3333
}).catch(function(request) {
3434
Log.error("Could not load data ... ", request);
3535
})
36-
.finally(() => this.updateAvailable())
36+
.finally(() => this.updateAvailable());
3737
},
3838

3939
fetchWeatherForecast() {
@@ -49,7 +49,7 @@ WeatherProvider.register("darksky", {
4949
}).catch(function(request) {
5050
Log.error("Could not load data ... ", request);
5151
})
52-
.finally(() => this.updateAvailable())
52+
.finally(() => this.updateAvailable());
5353
},
5454

5555
// Create a URL from the config and base URL.

modules/default/weather/providers/openweathermap.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ WeatherProvider.register("openweathermap", {
3434
.catch(function(request) {
3535
Log.error("Could not load data ... ", request);
3636
})
37-
.finally(() => this.updateAvailable())
37+
.finally(() => this.updateAvailable());
3838
},
3939

4040
// Overwrite the fetchCurrentWeather method.
@@ -55,7 +55,7 @@ WeatherProvider.register("openweathermap", {
5555
.catch(function(request) {
5656
Log.error("Could not load data ... ", request);
5757
})
58-
.finally(() => this.updateAvailable())
58+
.finally(() => this.updateAvailable());
5959
},
6060

6161
/** OpenWeatherMap Specific Methods - These are not part of the default provider methods */
@@ -223,7 +223,7 @@ WeatherProvider.register("openweathermap", {
223223
days.push(weather);
224224
}
225225

226-
return days;
226+
return days;
227227
},
228228

229229
/*

modules/default/weather/providers/ukmetoffice.js

+8-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* This class is a provider for UK Met Office Datapoint.
1010
*/
1111

12-
1312
WeatherProvider.register("ukmetoffice", {
1413

1514
// Set the name of the provider.
@@ -41,7 +40,7 @@ WeatherProvider.register("ukmetoffice", {
4140
.catch(function(request) {
4241
Log.error("Could not load data ... ", request);
4342
})
44-
.finally(() => this.updateAvailable())
43+
.finally(() => this.updateAvailable());
4544
},
4645

4746
// Overwrite the fetchCurrentWeather method.
@@ -63,11 +62,9 @@ WeatherProvider.register("ukmetoffice", {
6362
.catch(function(request) {
6463
Log.error("Could not load data ... ", request);
6564
})
66-
.finally(() => this.updateAvailable())
65+
.finally(() => this.updateAvailable());
6766
},
6867

69-
70-
7168
/** UK Met Office Specific Methods - These are not part of the default provider methods */
7269
/*
7370
* Gets the complete url for the request
@@ -83,13 +80,13 @@ WeatherProvider.register("ukmetoffice", {
8380
const currentWeather = new WeatherObject(this.config.units, this.config.tempUnits, this.config.windUnits);
8481

8582
// data times are always UTC
86-
let nowUtc = moment.utc()
87-
let midnightUtc = nowUtc.clone().startOf("day")
83+
let nowUtc = moment.utc();
84+
let midnightUtc = nowUtc.clone().startOf("day");
8885
let timeInMins = nowUtc.diff(midnightUtc, "minutes");
8986

9087
// loop round each of the (5) periods, look for today (the first period may be yesterday)
9188
for (i in currentWeatherData.SiteRep.DV.Location.Period) {
92-
let periodDate = moment.utc(currentWeatherData.SiteRep.DV.Location.Period[i].value.substr(0,10), "YYYY-MM-DD")
89+
let periodDate = moment.utc(currentWeatherData.SiteRep.DV.Location.Period[i].value.substr(0,10), "YYYY-MM-DD");
9390

9491
// ignore if period is before today
9592
if (periodDate.isSameOrAfter(moment.utc().startOf("day"))) {
@@ -116,7 +113,7 @@ WeatherProvider.register("ukmetoffice", {
116113
}
117114

118115
// determine the sunrise/sunset times - not supplied in UK Met Office data
119-
let times = this.calcAstroData(currentWeatherData.SiteRep.DV.Location)
116+
let times = this.calcAstroData(currentWeatherData.SiteRep.DV.Location);
120117
currentWeather.sunrise = times[0];
121118
currentWeather.sunset = times[1];
122119

@@ -136,8 +133,8 @@ WeatherProvider.register("ukmetoffice", {
136133
const weather = new WeatherObject(this.config.units, this.config.tempUnits, this.config.windUnits);
137134

138135
// data times are always UTC
139-
dateStr = forecasts.SiteRep.DV.Location.Period[j].value
140-
let periodDate = moment.utc(dateStr.substr(0,10), "YYYY-MM-DD")
136+
dateStr = forecasts.SiteRep.DV.Location.Period[j].value;
137+
let periodDate = moment.utc(dateStr.substr(0,10), "YYYY-MM-DD");
141138

142139
// ignore if period is before today
143140
if (periodDate.isSameOrAfter(moment.utc().startOf("day"))) {

modules/default/weather/providers/weathergov.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ WeatherProvider.register("weathergov", {
3535
.catch(function(request) {
3636
Log.error("Could not load data ... ", request);
3737
})
38-
.finally(() => this.updateAvailable())
38+
.finally(() => this.updateAvailable());
3939
},
4040

4141
// Overwrite the fetchCurrentWeather method.
@@ -54,7 +54,7 @@ WeatherProvider.register("weathergov", {
5454
.catch(function(request) {
5555
Log.error("Could not load data ... ", request);
5656
})
57-
.finally(() => this.updateAvailable())
57+
.finally(() => this.updateAvailable());
5858
},
5959

6060
/** Weather.gov Specific Methods - These are not part of the default provider methods */
@@ -77,7 +77,7 @@ WeatherProvider.register("weathergov", {
7777
currentWeather.weatherType = this.convertWeatherType(currentWeatherData.shortForecast, currentWeatherData.isDaytime);
7878

7979
// determine the sunrise/sunset times - not supplied in weather.gov data
80-
let times = this.calcAstroData(this.config.lat, this.config.lon)
80+
let times = this.calcAstroData(this.config.lat, this.config.lon);
8181
currentWeather.sunrise = times[0];
8282
currentWeather.sunset = times[1];
8383

0 commit comments

Comments
 (0)