Bump prettier from 2.8.1 to 2.8.3 (#15129)

* Bump prettier from 2.8.1 to 2.8.3

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.1...2.8.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* apply rules

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
dependabot[bot] 2023-01-18 14:16:42 -05:00 committed by GitHub
parent 014ae06e85
commit 282823ee83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 27 additions and 27 deletions

View File

@ -220,7 +220,7 @@
"object-hash": "^3.0.0",
"open": "^8.4.0",
"pinst": "^3.0.0",
"prettier": "^2.8.1",
"prettier": "^2.8.3",
"require-dir": "^1.2.0",
"rollup": "^2.8.2",
"rollup-plugin-string": "^3.0.0",

View File

@ -39,5 +39,5 @@ export default function scrollToTarget(element, target) {
);
requestAnimationFrame(updateFrame.bind(element));
}
}.call(element));
}).call(element);
}

View File

@ -35,9 +35,9 @@ const TRUNCATED_DOMAINS = [
"person",
] as const satisfies ReadonlyArray<keyof typeof FIXED_DOMAIN_STATES>;
type TruncatedDomain = typeof TRUNCATED_DOMAINS[number];
type TruncatedDomain = (typeof TRUNCATED_DOMAINS)[number];
type TruncatedKey = {
[T in TruncatedDomain]: `${T}.${typeof FIXED_DOMAIN_STATES[T][number]}`;
[T in TruncatedDomain]: `${T}.${(typeof FIXED_DOMAIN_STATES)[T][number]}`;
}[TruncatedDomain];
const getTruncatedKey = (domainKey: string, stateKey: string) => {

View File

@ -8,7 +8,7 @@ import { BlueprintInput } from "./blueprint";
import { DeviceCondition, DeviceTrigger } from "./device_automation";
import { Action, MODES } from "./script";
export const AUTOMATION_DEFAULT_MODE: typeof MODES[number] = "single";
export const AUTOMATION_DEFAULT_MODE: (typeof MODES)[number] = "single";
export const AUTOMATION_DEFAULT_MAX = 10;
export interface AutomationEntity extends HassEntityBase {
@ -29,7 +29,7 @@ export interface ManualAutomationConfig {
trigger: Trigger | Trigger[];
condition?: Condition | Condition[];
action: Action | Action[];
mode?: typeof MODES[number];
mode?: (typeof MODES)[number];
max?: number;
max_exceeded?:
| "silent"

View File

@ -671,7 +671,7 @@ export const getEnergySolarForecasts = (hass: HomeAssistant) =>
});
const energyGasUnitClass = ["volume", "energy"] as const;
export type EnergyGasUnitClass = typeof energyGasUnitClass[number];
export type EnergyGasUnitClass = (typeof energyGasUnitClass)[number];
export const getEnergyGasUnitClass = (
prefs: EnergyPreferences,

View File

@ -7,8 +7,8 @@ import { TranslationDict } from "../types";
import { UNAVAILABLE_STATES } from "./entity";
type HumidifierState =
| typeof FIXED_DOMAIN_STATES.humidifier[number]
| typeof UNAVAILABLE_STATES[number];
| (typeof FIXED_DOMAIN_STATES.humidifier)[number]
| (typeof UNAVAILABLE_STATES)[number];
type HumidifierMode =
keyof TranslationDict["state_attributes"]["humidifier"]["mode"];

View File

@ -98,7 +98,7 @@ const statisticTypes = [
"state",
"sum",
] as const;
export type StatisticsTypes = typeof statisticTypes[number][];
export type StatisticsTypes = (typeof statisticTypes)[number][];
export interface StatisticsValidationResults {
[statisticId: string]: StatisticsValidationResult[];

View File

@ -15,7 +15,7 @@ export interface ScheduleDay {
to: string;
}
type ScheduleDays = { [K in typeof weekdays[number]]?: ScheduleDay[] };
type ScheduleDays = { [K in (typeof weekdays)[number]]?: ScheduleDay[] };
export interface Schedule extends ScheduleDays {
id: string;

View File

@ -77,7 +77,7 @@ const activateSceneActionStruct: Describe<ServiceSceneAction> = assign(
export interface ScriptEntity extends HassEntityBase {
attributes: HassEntityAttributeBase & {
last_triggered: string;
mode: typeof MODES[number];
mode: (typeof MODES)[number];
current?: number;
max?: number;
};
@ -89,7 +89,7 @@ export interface ManualScriptConfig {
alias: string;
sequence: Action | Action[];
icon?: string;
mode?: typeof MODES[number];
mode?: (typeof MODES)[number];
max?: number;
}

View File

@ -26,7 +26,7 @@ class DialogAutomationMode extends LitElement implements HassDialog {
private _params!: AutomationModeDialog;
@state() private _newMode: typeof MODES[number] = AUTOMATION_DEFAULT_MODE;
@state() private _newMode: (typeof MODES)[number] = AUTOMATION_DEFAULT_MODE;
@state() private _newMax?: number;

View File

@ -21,7 +21,7 @@ export const HELPER_DOMAINS = [
"schedule",
] as const;
export type HelperDomain = typeof HELPER_DOMAINS[number];
export type HelperDomain = (typeof HELPER_DOMAINS)[number];
export const isHelperDomain = arrayLiteralIncludes(HELPER_DOMAINS);
export type Helper =

View File

@ -50,7 +50,7 @@ export class ZHAManageClusters extends LitElement {
@state() private _selectedCluster?: Cluster;
@state() private _currTab: typeof tabs[number] = "attributes";
@state() private _currTab: (typeof tabs)[number] = "attributes";
@state() private _clustersLoaded = false;

View File

@ -95,7 +95,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
(
hasID: boolean,
useBluePrint?: boolean,
currentMode?: typeof MODES[number]
currentMode?: (typeof MODES)[number]
) =>
[
{
@ -528,7 +528,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
// Mode must be one of max modes per schema definition above
return this.hass.localize(
`ui.panel.config.script.editor.max.${
data.mode as typeof MODES_MAX[number]
data.mode as (typeof MODES_MAX)[number]
}`
);
default:

View File

@ -161,7 +161,7 @@ export const computeCards = (
renderFooterEntities &&
(domain === "scene" || domain === "script")
) {
const conf: typeof footerEntities[0] = {
const conf: (typeof footerEntities)[0] = {
entity: entityId,
show_icon: true,
show_name: true,

View File

@ -16,4 +16,4 @@ export const TIMESTAMP_RENDERING_FORMATS = [
] as const;
export type TimestampRenderingFormat =
typeof TIMESTAMP_RENDERING_FORMATS[number];
(typeof TIMESTAMP_RENDERING_FORMATS)[number];

View File

@ -38,7 +38,7 @@ const cardConfigStruct = assign(
const stat_types = ["mean", "min", "max", "change"] as const;
const statTypeMap: Record<typeof stat_types[number], StatisticType> = {
const statTypeMap: Record<(typeof stat_types)[number], StatisticType> = {
mean: "mean",
min: "min",
max: "max",

View File

@ -18,7 +18,7 @@ export const VACUUM_COMMANDS = [
"return_home",
] as const;
export type VacuumCommand = typeof VACUUM_COMMANDS[number];
export type VacuumCommand = (typeof VACUUM_COMMANDS)[number];
export interface VacuumCommandsTileFeatureConfig {
type: "vacuum-commands";

View File

@ -9592,7 +9592,7 @@ fsevents@^1.2.7:
object-hash: ^3.0.0
open: ^8.4.0
pinst: ^3.0.0
prettier: ^2.8.1
prettier: ^2.8.3
proxy-polyfill: ^0.3.2
punycode: ^2.1.1
qr-scanner: ^1.3.0
@ -13117,12 +13117,12 @@ fsevents@^1.2.7:
languageName: node
linkType: hard
"prettier@npm:^2.8.1":
version: 2.8.1
resolution: "prettier@npm:2.8.1"
"prettier@npm:^2.8.3":
version: 2.8.3
resolution: "prettier@npm:2.8.3"
bin:
prettier: bin-prettier.js
checksum: 4f21a0f1269f76fb36f54e9a8a1ea4c11e27478958bf860661fb4b6d7ac69aac1581f8724fa98ea3585e56d42a2ea317a17ff6e3324f40cb11ff9e20b73785cc
checksum: 92f2ceb522d454370e02082aa74ad27388672f7cee8975028b59517c069fe643bdc73e322675c8faf2ff173d7a626d1a6389f26b474000308e793aa25fff46e5
languageName: node
linkType: hard