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

@@ -54,7 +54,7 @@
"io-ts": "^2.2.16",
"jest": "^27.5.1",
"lodash": "^4.17.21",
"prettier": "^2.6.2",
"prettier": "^2.8.4",
"qs": "^6.10.3",
"ts-jest": "^27.1.4",
"tsup": "^5.12.7",

View File

@@ -126,7 +126,7 @@
"@vue/runtime-core": "^3.2.39",
"cross-env": "^7.0.3",
"eslint": "^8.24.0",
"eslint-plugin-prettier": "^4.2.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.5.1",
"npm-run-all": "^4.1.5",
"openapi-types": "^12.0.0",

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")

View File

@@ -55,11 +55,11 @@
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"io-ts": "^2.2.16",
"jest": "^27.5.1",
"prettier": "^2.6.2",
"prettier": "^2.8.4",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
}

View File

@@ -53,7 +53,7 @@
"@vue/runtime-core": "^3.2.39",
"cross-env": "^7.0.3",
"eslint": "^8.24.0",
"eslint-plugin-prettier": "^4.2.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.5.1",
"histoire": "^0.12.4",
"npm-run-all": "^4.1.5",