mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Update typescript, prettier, tslint -> eslint (#5536)
* Update typescript, prettier, tslint -> eslint * Organize imports * Use glob for eslint fix react import
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
import "@polymer/app-route/app-location";
|
||||
import { html, PropertyValues, property } from "lit-element";
|
||||
|
||||
import "./home-assistant-main";
|
||||
import "./ha-init-page";
|
||||
import "../resources/ha-style";
|
||||
import { html, property, PropertyValues } from "lit-element";
|
||||
import { navigate } from "../common/navigate";
|
||||
import { getStorageDefaultPanelUrlPath } from "../data/panel";
|
||||
import "../resources/custom-card-support";
|
||||
import "../resources/ha-style";
|
||||
import { HassElement } from "../state/hass-element";
|
||||
import { HomeAssistant, Route } from "../types";
|
||||
import {
|
||||
registerServiceWorker,
|
||||
supportsServiceWorker,
|
||||
} from "../util/register-service-worker";
|
||||
|
||||
import { Route, HomeAssistant } from "../types";
|
||||
import { navigate } from "../common/navigate";
|
||||
import { HassElement } from "../state/hass-element";
|
||||
import { getStorageDefaultPanelUrlPath } from "../data/panel";
|
||||
import "./ha-init-page";
|
||||
import "./home-assistant-main";
|
||||
|
||||
export class HomeAssistantAppEl extends HassElement {
|
||||
@property() private _route?: Route;
|
||||
|
||||
@property() private _error = false;
|
||||
|
||||
@property() private _panelUrl?: string;
|
||||
|
||||
private _haVersion?: string;
|
||||
|
||||
protected render() {
|
||||
@@ -38,9 +39,7 @@ export class HomeAssistantAppEl extends HassElement {
|
||||
.route=${this._route}
|
||||
></home-assistant-main>
|
||||
`
|
||||
: html`
|
||||
<ha-init-page .error=${this._error}></ha-init-page>
|
||||
`}
|
||||
: html` <ha-init-page .error=${this._error}></ha-init-page> `}
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -94,7 +93,6 @@ export class HomeAssistantAppEl extends HassElement {
|
||||
this.initializeHass(auth, conn);
|
||||
} catch (err) {
|
||||
this._error = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user