mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Lint
This commit is contained in:
parent
34ec3e0ae5
commit
365d660e79
@ -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 <Paulus@PaulusSchoutsen.nl> (http://paulusschoutsen.nl)",
|
||||
"license": "Apache-2.0",
|
||||
|
@ -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';
|
||||
export default 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
|
||||
|
@ -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';
|
||||
|
@ -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();
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user