mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
Add eslint rule for === vs == and fix its occurence
This commit is contained in:
parent
be76d5ce9a
commit
d7429a4812
@ -23,6 +23,7 @@
|
|||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"prettier/prettier": "error",
|
"prettier/prettier": "error",
|
||||||
|
"eqeqeq": "error",
|
||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
"no-unused-vars": "off"
|
"no-unused-vars": "off"
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ WeatherProvider.register("weathergov", {
|
|||||||
// excellent, let's fetch some actual wx data
|
// excellent, let's fetch some actual wx data
|
||||||
this.configURLs = true;
|
this.configURLs = true;
|
||||||
// handle 'forecast' config, fall back to 'current'
|
// handle 'forecast' config, fall back to 'current'
|
||||||
if (config.type == "forecast") {
|
if (config.type === "forecast") {
|
||||||
this.fetchWeatherForecast();
|
this.fetchWeatherForecast();
|
||||||
} else {
|
} else {
|
||||||
this.fetchCurrentWeather();
|
this.fetchCurrentWeather();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user