mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-24 12:49:19 +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,19 +1,17 @@
|
||||
import "@material/mwc-button";
|
||||
import {
|
||||
LitElement,
|
||||
query,
|
||||
property,
|
||||
TemplateResult,
|
||||
html,
|
||||
css,
|
||||
CSSResult,
|
||||
html,
|
||||
LitElement,
|
||||
property,
|
||||
query,
|
||||
TemplateResult,
|
||||
} from "lit-element";
|
||||
import { computeRTL } from "../common/util/compute_rtl";
|
||||
import { HomeAssistant } from "../types";
|
||||
import "@material/mwc-button";
|
||||
import "../components/ha-toast";
|
||||
// Typing
|
||||
// tslint:disable-next-line: no-duplicate-imports
|
||||
import { HaToast } from "../components/ha-toast";
|
||||
import type { HaToast } from "../components/ha-toast";
|
||||
import type { HomeAssistant } from "../types";
|
||||
|
||||
export interface ShowToastParams {
|
||||
message: string;
|
||||
@@ -31,7 +29,8 @@ class NotificationManager extends LitElement {
|
||||
@property() public hass!: HomeAssistant;
|
||||
|
||||
@property() private _action?: ToastActionParams;
|
||||
@property() private _noCancelOnOutsideClick: boolean = false;
|
||||
|
||||
@property() private _noCancelOnOutsideClick = false;
|
||||
|
||||
@query("ha-toast") private _toast!: HaToast;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user