From 365d660e79becf47075cbf68e6b5ba3c71b5298e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 18 May 2018 17:57:26 -0400 Subject: [PATCH] Lint --- package.json | 6 ++---- src/common/empty_image_base64.js | 2 +- src/entrypoints/app.js | 1 - src/util/hass-call-api.js | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 217262a934..40277c92df 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,10 @@ "name": "home-assistant-frontend", "version": "1.0.0", "scripts": { - "clean": "rm -rf build/* build-temp/* build-es5/* build-temp-es5/* build-translations/*", "build": "script/build_frontend", - "lint_js": "eslint src hassio/src test-mocha", - "lint_html": "polymer lint", + "lint": "eslint src hassio/src test-mocha && polymer lint", "mocha": "node_modules/.bin/mocha --opts test-mocha/mocha.opts", - "test": "npm run lint_js && npm run lint_html && npm run mocha" + "test": "npm run lint && npm run mocha" }, "author": "Paulus Schoutsen (http://paulusschoutsen.nl)", "license": "Apache-2.0", diff --git a/src/common/empty_image_base64.js b/src/common/empty_image_base64.js index 1d4168d446..1ad5d321f2 100644 --- a/src/common/empty_image_base64.js +++ b/src/common/empty_image_base64.js @@ -1,2 +1,2 @@ /** An empty image which can be set as src of an img element. */ -export default 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; \ No newline at end of file +export default 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; diff --git a/src/entrypoints/app.js b/src/entrypoints/app.js index 6827b46e09..280e0e2b9e 100644 --- a/src/entrypoints/app.js +++ b/src/entrypoints/app.js @@ -22,7 +22,6 @@ import '../managers/notification-manager.js'; import '../resources/ha-style.js'; import '../resources/html-import/polyfill.js'; import '../util/ha-pref-storage.js'; -import '../util/hass-call-api.js'; import '../util/hass-translation.js'; import '../util/legacy-support'; import '../util/roboto.js'; diff --git a/src/util/hass-call-api.js b/src/util/hass-call-api.js index cdfde9fe7e..25c3f48803 100644 --- a/src/util/hass-call-api.js +++ b/src/util/hass-call-api.js @@ -1,4 +1,4 @@ -export default function hassCallApi (host, auth, method, path, parameters) { +export default function hassCallApi(host, auth, method, path, parameters) { var url = host + '/api/' + path; return new Promise(function (resolve, reject) { @@ -53,4 +53,4 @@ export default function hassCallApi (host, auth, method, path, parameters) { req.send(); } }); -}; +}