Fix ALL the eslint warnings (#23165)

* Fix many lint warnings

* Fix ALL lint warnings

* small fix

* type fixes
This commit is contained in:
Petar Petrov
2024-12-06 10:55:07 +02:00
committed by GitHub
parent f724d8e7a9
commit 7a12fd2853
308 changed files with 918 additions and 823 deletions

View File

@@ -36,7 +36,7 @@ export class HaBaseTimeInput extends LitElement {
/**
* auto validate time inputs
*/
@property({ type: Boolean }) autoValidate = false;
@property({ attribute: false, type: Boolean }) autoValidate = false;
/**
* determines if inputs are required
@@ -81,52 +81,52 @@ export class HaBaseTimeInput extends LitElement {
/**
* Label for the day input
*/
@property() dayLabel = "";
@property({ attribute: false }) dayLabel = "";
/**
* Label for the hour input
*/
@property() hourLabel = "";
@property({ attribute: false }) hourLabel = "";
/**
* Label for the min input
*/
@property() minLabel = "";
@property({ attribute: false }) minLabel = "";
/**
* Label for the sec input
*/
@property() secLabel = "";
@property({ attribute: false }) secLabel = "";
/**
* Label for the milli sec input
*/
@property() millisecLabel = "";
@property({ attribute: false }) millisecLabel = "";
/**
* show the sec field
*/
@property({ type: Boolean }) enableSecond = false;
@property({ attribute: false, type: Boolean }) enableSecond = false;
/**
* show the milli sec field
*/
@property({ type: Boolean }) enableMillisecond = false;
@property({ attribute: false, type: Boolean }) enableMillisecond = false;
/**
* show the day field
*/
@property({ type: Boolean }) enableDay = false;
@property({ attribute: false, type: Boolean }) enableDay = false;
/**
* limit hours input
*/
@property({ type: Boolean }) noHoursLimit = false;
@property({ attribute: false, type: Boolean }) noHoursLimit = false;
/**
* AM or PM
*/
@property() amPm: "AM" | "PM" = "AM";
@property({ attribute: false }) amPm: "AM" | "PM" = "AM";
@property({ type: Boolean, reflect: true }) public clearable?: boolean;