Add and fix stylistic eslint rules (#23735)

* Fix stylistic eslint rules

* Fix eslint issues
This commit is contained in:
Wendelin
2025-01-14 21:00:14 +01:00
committed by GitHub
parent 69a93ddb6e
commit e703750136
582 changed files with 12485 additions and 13451 deletions

View File

@@ -1,4 +1,4 @@
import type { CSSResultGroup, PropertyValues } from "lit";
import type { PropertyValues } from "lit";
import { LitElement, css, html, nothing } from "lit";
import { customElement, property } from "lit/decorators";
import { classMap } from "lit/directives/class-map";
@@ -188,55 +188,53 @@ export class HuiGenericEntityRow extends LitElement {
handleAction(this, this.hass!, this.config!, ev.detail.action!);
}
static get styles(): CSSResultGroup {
return css`
:host {
display: flex;
align-items: center;
flex-direction: row;
}
.info {
margin-left: 16px;
margin-right: 8px;
margin-inline-start: 16px;
margin-inline-end: 8px;
flex: 1 1 30%;
}
.info,
.info > * {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.flex ::slotted(*) {
margin-left: 8px;
margin-inline-start: 8px;
margin-inline-end: initial;
min-width: 0;
}
.flex ::slotted([slot="secondary"]) {
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: initial;
}
.secondary,
ha-relative-time {
color: var(--secondary-text-color);
}
state-badge {
flex: 0 0 40px;
}
.pointer {
cursor: pointer;
}
.state {
text-align: var(--float-end);
}
.value {
direction: ltr;
}
`;
}
static styles = css`
:host {
display: flex;
align-items: center;
flex-direction: row;
}
.info {
margin-left: 16px;
margin-right: 8px;
margin-inline-start: 16px;
margin-inline-end: 8px;
flex: 1 1 30%;
}
.info,
.info > * {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.flex ::slotted(*) {
margin-left: 8px;
margin-inline-start: 8px;
margin-inline-end: initial;
min-width: 0;
}
.flex ::slotted([slot="secondary"]) {
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: initial;
}
.secondary,
ha-relative-time {
color: var(--secondary-text-color);
}
state-badge {
flex: 0 0 40px;
}
.pointer {
cursor: pointer;
}
.state {
text-align: var(--float-end);
}
.value {
direction: ltr;
}
`;
}
declare global {