chore: prettier version bump and related fixes

This commit is contained in:
Andrew Bastin
2023-02-08 18:34:41 +05:30
parent 864d40d934
commit 99918ee0c0
11 changed files with 77 additions and 57 deletions

View File

@@ -69,7 +69,7 @@ const interceptors = computed(() => [
},
])
type InterceptorMode = typeof interceptors["value"][number]["value"]
type InterceptorMode = (typeof interceptors)["value"][number]["value"]
const interceptorSelection = computed<InterceptorMode>({
get() {

View File

@@ -284,7 +284,7 @@ const filters = computed(() => [
{ value: "STARRED" as const, label: t("filter.starred") },
])
type FilterMode = typeof filters["value"][number]["value"]
type FilterMode = (typeof filters)["value"][number]["value"]
const filterSelection = ref<FilterMode>("ALL")
@@ -293,7 +293,7 @@ const groups = computed(() => [
{ value: "URL" as const, label: t("group.url") },
])
type GroupMode = typeof groups["value"][number]["value"]
type GroupMode = (typeof groups)["value"][number]["value"]
const groupSelection = ref<GroupMode>("TIME")

View File

@@ -112,7 +112,7 @@ const emit = defineEmits<{
(e: "submit", body: MQTTTopic): void
}>()
const QoS = ref<typeof QOS_VALUES[number]>(2)
const QoS = ref<(typeof QOS_VALUES)[number]>(2)
const name = ref("")
const color = ref("#f58290")

View File

@@ -185,7 +185,7 @@ export const CodegenDefinitions = [
/**
* A type which defines all the valid code generators
*/
export type CodegenName = typeof CodegenDefinitions[number]["name"]
export type CodegenName = (typeof CodegenDefinitions)[number]["name"]
/**
* Generates Source Code for the given codgen

View File

@@ -7,7 +7,7 @@ import type { KeysMatching } from "~/types/ts-utils"
export const HoppBgColors = ["system", "light", "dark", "black"] as const
export type HoppBgColor = typeof HoppBgColors[number]
export type HoppBgColor = (typeof HoppBgColors)[number]
export const HoppAccentColors = [
"green",
@@ -21,11 +21,11 @@ export const HoppAccentColors = [
"pink",
] as const
export type HoppAccentColor = typeof HoppAccentColors[number]
export type HoppAccentColor = (typeof HoppAccentColors)[number]
export const HoppFontSizes = ["small", "medium", "large"] as const
export type HoppFontSize = typeof HoppFontSizes[number]
export type HoppFontSize = (typeof HoppFontSizes)[number]
export type SettingsType = {
syncCollections: boolean

View File

@@ -44,7 +44,7 @@ const REALTIME_NAVIGATION = [
},
] as const
type RealtimeNavTab = typeof REALTIME_NAVIGATION[number]["target"]
type RealtimeNavTab = (typeof REALTIME_NAVIGATION)[number]["target"]
const currentTab = ref<RealtimeNavTab>("websocket")