Add eslint rule for === vs == and fix its occurence

This commit is contained in:
rejas 2021-08-31 23:39:40 +02:00
parent be76d5ce9a
commit d7429a4812
2 changed files with 2 additions and 1 deletions

View File

@ -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"
} }

View File

@ -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();