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": {
"prettier/prettier": "error",
"eqeqeq": "error",
"no-prototype-builtins": "off",
"no-unused-vars": "off"
}

View File

@ -130,7 +130,7 @@ WeatherProvider.register("weathergov", {
// excellent, let's fetch some actual wx data
this.configURLs = true;
// handle 'forecast' config, fall back to 'current'
if (config.type == "forecast") {
if (config.type === "forecast") {
this.fetchWeatherForecast();
} else {
this.fetchCurrentWeather();