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", "object-hash": "^3.0.0",
"open": "^8.4.0", "open": "^8.4.0",
"pinst": "^3.0.0", "pinst": "^3.0.0",
"prettier": "^2.8.1", "prettier": "^2.8.3",
"require-dir": "^1.2.0", "require-dir": "^1.2.0",
"rollup": "^2.8.2", "rollup": "^2.8.2",
"rollup-plugin-string": "^3.0.0", "rollup-plugin-string": "^3.0.0",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@ class DialogAutomationMode extends LitElement implements HassDialog {
private _params!: AutomationModeDialog; 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; @state() private _newMax?: number;

View File

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

View File

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

View File

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

View File

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

View File

@ -16,4 +16,4 @@ export const TIMESTAMP_RENDERING_FORMATS = [
] as const; ] as const;
export type TimestampRenderingFormat = 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 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", mean: "mean",
min: "min", min: "min",
max: "max", max: "max",

View File

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

View File

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