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:
Bram Kragten
2020-04-14 18:05:45 +02:00
committed by GitHub
parent b17490f0de
commit 82f80db558
737 changed files with 9408 additions and 7414 deletions

View File

@@ -1,32 +1,30 @@
import {
html,
LitElement,
TemplateResult,
css,
CSSResult,
property,
customElement,
html,
LitElement,
property,
PropertyValues,
TemplateResult,
} from "lit-element";
import "../../../components/entity/state-badge";
import "../components/hui-warning";
import { LovelaceRow } from "./types";
import { UNAVAILABLE_STATES } from "../../../data/entity";
import {
getWeatherUnit,
weatherIcons,
weatherImages,
} from "../../../data/weather";
import { HomeAssistant, WeatherEntity } from "../../../types";
import { EntitiesCardEntityConfig } from "../cards/types";
import { hasConfigOrEntityChanged } from "../common/has-changed";
import {
weatherIcons,
getWeatherUnit,
weatherImages,
} from "../../../data/weather";
import { UNAVAILABLE_STATES } from "../../../data/entity";
import "../components/hui-warning";
import { LovelaceRow } from "./types";
@customElement("hui-weather-entity-row")
class HuiWeatherEntityRow extends LitElement implements LovelaceRow {
@property() public hass?: HomeAssistant;
@property() private _config?: EntitiesCardEntityConfig;
public setConfig(config: EntitiesCardEntityConfig): void {