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,34 +1,37 @@
import "@polymer/paper-input/paper-input";
import type { PaperInputElement } from "@polymer/paper-input/paper-input";
import {
LitElement,
html,
css,
CSSResult,
TemplateResult,
property,
customElement,
html,
LitElement,
property,
query,
TemplateResult,
} from "lit-element";
import "@polymer/paper-input/paper-input";
import "../../../../components/ha-switch";
import "../../../../components/ha-icon-input";
import { HomeAssistant } from "../../../../types";
import { fireEvent } from "../../../../common/dom/fire_event";
import { haStyle } from "../../../../resources/styles";
import { InputSelect } from "../../../../data/input_select";
// tslint:disable-next-line: no-duplicate-imports
import { PaperInputElement } from "@polymer/paper-input/paper-input";
import "../../../../components/ha-icon-input";
import "../../../../components/ha-switch";
import type { InputSelect } from "../../../../data/input_select";
import { showConfirmationDialog } from "../../../../dialogs/generic/show-dialog-box";
import { haStyle } from "../../../../resources/styles";
import type { HomeAssistant } from "../../../../types";
@customElement("ha-input_select-form")
class HaInputSelectForm extends LitElement {
@property() public hass!: HomeAssistant;
@property() public new?: boolean;
private _item?: InputSelect;
@property() private _name!: string;
@property() private _icon!: string;
@property() private _options: string[] = [];
@query("#option_input") private _optionInput?: PaperInputElement;
set item(item: InputSelect) {