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

@@ -15,7 +15,7 @@ import {
startOfYear,
isThisYear,
} from "date-fns";
import type { CSSResultGroup, PropertyValues, TemplateResult } from "lit";
import type { PropertyValues, TemplateResult } from "lit";
import { LitElement, css, html, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { ifDefined } from "lit/directives/if-defined";
@@ -33,9 +33,7 @@ import "./ha-textarea";
import "./ha-icon-button-next";
import "./ha-icon-button-prev";
export interface DateRangePickerRanges {
[key: string]: [Date, Date];
}
export type DateRangePickerRanges = Record<string, [Date, Date]>;
@customElement("ha-date-range-picker")
export class HaDateRangePicker extends LitElement {
@@ -360,8 +358,7 @@ export class HaDateRangePicker extends LitElement {
}
}
static get styles(): CSSResultGroup {
return css`
static styles = css`
ha-icon-button {
direction: var(--direction);
@@ -400,7 +397,6 @@ export class HaDateRangePicker extends LitElement {
}
}
`;
}
}
declare global {