diff --git a/.eslintrc.json b/.eslintrc.json index 6936dd7e..7390c3b7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,6 +5,7 @@ "max-len": ["error", 250], "curly": "error", "camelcase": ["error", {"properties": "never"}], + "no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }], "no-trailing-spaces": ["error", {"ignoreComments": false }], "no-irregular-whitespace": ["error"] }, diff --git a/CHANGELOG.md b/CHANGELOG.md index ccfd98f8..36aff1e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Allowance HTML5 autoplay-policy (policy is changed from Chrome 66 updates) - Handle SIGTERM messages - Fixes sliceMultiDayEvents so it respects maximumNumberOfDays -- Fix typos and small syntax errors, cleanup dependencies +- Fix typos and small syntax errors, cleanup dependencies, remove multiple-empty-lines ## [2.7.1] - 2019-04-02 diff --git a/js/class.js b/js/class.js index 8cde84dd..39cd2962 100644 --- a/js/class.js +++ b/js/class.js @@ -43,7 +43,6 @@ var ret = fn.apply(this, arguments); this._super = tmp; - return ret; }; })(name, prop[name]) : prop[name]; diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 8e2e4f85..f27864e2 100755 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -191,7 +191,6 @@ Module.register("calendar", { } } - var eventWrapper = document.createElement("tr"); if (this.config.colored && !this.config.coloredSymbolOnly) { diff --git a/modules/default/compliments/compliments.js b/modules/default/compliments/compliments.js index 0c944f63..05200af8 100644 --- a/modules/default/compliments/compliments.js +++ b/modules/default/compliments/compliments.js @@ -165,7 +165,6 @@ Module.register("compliments", { return wrapper; }, - // From data currentweather set weather type setCurrentWeatherType: function(data) { var weatherIconTable = { @@ -191,7 +190,6 @@ Module.register("compliments", { this.currentWeatherType = weatherIconTable[data.weather[0].icon]; }, - // Override notification handler. notificationReceived: function(notification, payload, sender) { if (notification === "CURRENTWEATHER_DATA") { diff --git a/modules/default/newsfeed/fetcher.js b/modules/default/newsfeed/fetcher.js index 90574ed2..17e973fd 100644 --- a/modules/default/newsfeed/fetcher.js +++ b/modules/default/newsfeed/fetcher.js @@ -81,7 +81,6 @@ var Fetcher = function(url, reloadInterval, encoding, logFeedWarnings) { scheduleTimer(); }); - nodeVersion = Number(process.version.match(/^v(\d+\.\d+)/)[1]); headers = {"User-Agent": "Mozilla/5.0 (Node.js "+ nodeVersion + ") MagicMirror/" + global.version + " (https://github.com/MichMich/MagicMirror/)", "Cache-Control": "max-age=0, no-cache, no-store, must-revalidate", diff --git a/modules/default/weather/weatherprovider.js b/modules/default/weather/weatherprovider.js index b24fff2f..ba3e9188 100644 --- a/modules/default/weather/weatherprovider.js +++ b/modules/default/weather/weatherprovider.js @@ -9,7 +9,6 @@ * This class is the blueprint for a weather provider. */ - /** * Base BluePrint for the WeatherProvider */ diff --git a/tests/configs/modules/positions.js b/tests/configs/modules/positions.js index 60e6dd04..d56fab91 100644 --- a/tests/configs/modules/positions.js +++ b/tests/configs/modules/positions.js @@ -6,7 +6,6 @@ * MIT Licensed. */ - var config = { port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], diff --git a/translations/translations.js b/translations/translations.js index 3d719cc3..683229bc 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -45,4 +45,3 @@ var translations = { if (typeof module !== "undefined") {module.exports = translations;} -