Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update dependency prettier-plugin-tailwindcss to v0.5.11 (#3862)
Openverse (Bot)ae60f00d097a
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 81b2c97da..6d21ff1b4 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -55,12 +55,14 @@ repos:# Use the `.prettierignore` and `.prettier.config.js` files to configure project-specific requirements.- repo: https://github.com/pre-commit/mirrors-prettier- rev: v2.7.1+ rev: v3.1.0hooks:- id: prettier+ # Must include any plugins defined in prettier.config.js, along with TypeScript and Prettier themselves+ # Versions must be manually kept in sync with those in the pnpm-lock.yaml file to prevent drift.additional_dependencies:- repo: https://github.com/koalaman/shellcheck-precommitdiff --git a/frontend/.remake/story/remake-name.stories.mdx b/frontend/.remake/story/remake-name.stories.mdxindex 29c105d82..17c683303 100644--- a/frontend/.remake/story/remake-name.stories.mdx+++ b/frontend/.remake/story/remake-name.stories.mdx@@ -1,4 +1,4 @@-import { Canvas, Meta, Story } from '@storybook/addon-docs';+import { Canvas, Meta, Story } from "@storybook/addon-docs"import <%= name %> from '~/components/<%= name %>/<%= name %>.vue'diff --git a/frontend/src/app.html b/frontend/src/app.htmlindex bdebd3dd8..92d3de5b1 100644--- a/frontend/src/app.html+++ b/frontend/src/app.html@@ -1,4 +1,4 @@-<!DOCTYPE html>+<!doctype html><html {{ HTML_ATTRS }}><head {{ HEAD_ATTRS }}>{{ HEAD }}diff --git a/frontend/src/assets/fonts.css b/frontend/src/assets/fonts.cssindex 87f0df3d0..e1fe30d15 100644--- a/frontend/src/assets/fonts.css+++ b/frontend/src/assets/fonts.css@@ -24,7 +24,9 @@font-family: Inter;font-style: normal;font-weight: 400;- src: local("Inter-Regular"), local("Inter Regular"),+ src:+ local("Inter-Regular"),+ local("Inter Regular"),url("~assets/fonts/Inter-Regular.woff2") format("woff2"),url("~assets/fonts/Inter-Regular.woff") format("woff");}@@ -34,7 +36,9 @@font-family: Inter;font-style: italic;font-weight: 100 900;- src: local("Inter-Italic"), local("Inter Italic"),+ src:+ local("Inter-Italic"),+ local("Inter Italic"),url("~assets/fonts/Inter-Italic.woff2") format("woff2"),url("~assets/fonts/Inter-Italic.woff") format("woff");}@@ -44,7 +48,9 @@font-family: Inter;font-style: normal;font-weight: 600;- src: local("Inter-SemiBold"), local("Inter SemiBold"),+ src:+ local("Inter-SemiBold"),+ local("Inter SemiBold"),url("~assets/fonts/Inter-SemiBold.woff2") format("woff2"),url("~assets/fonts/Inter-SemiBold.woff") format("woff");}@@ -54,7 +60,9 @@font-family: Inter;font-style: italic;font-weight: 600;- src: local("Inter-SemiBoldItalic"), local("Inter SemiBoldItalic"),+ src:+ local("Inter-SemiBoldItalic"),+ local("Inter SemiBoldItalic"),url("~assets/fonts/Inter-SemiBoldItalic.woff2") format("woff2"),url("~assets/fonts/Inter-SemiBoldItalic.woff") format("woff");}@@ -64,7 +72,9 @@font-family: Inter;font-style: normal;font-weight: 700;- src: local("Inter-Bold"), local("Inter Bold"),+ src:+ local("Inter-Bold"),+ local("Inter Bold"),url("~assets/fonts/Inter-Bold.woff2") format("woff2"),url("~assets/fonts/Inter-Bold.woff") format("woff");}@@ -74,7 +84,9 @@font-family: Inter;font-style: italic;font-weight: 700;- src: local("Inter-BoldItalic"), local("Inter BoldItalic"),+ src:+ local("Inter-BoldItalic"),+ local("Inter BoldItalic"),url("~assets/fonts/Inter-BoldItalic.woff2") format("woff2"),url("~assets/fonts/Inter-BoldItalic.woff") format("woff");}@@ -85,7 +97,9 @@font-style: normal;font-weight: 400;font-display: swap;- src: local("JetBrainsMono-Regular"), local("JetBrains Mono Regular"),+ src:+ local("JetBrainsMono-Regular"),+ local("JetBrains Mono Regular"),url("~assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"),url("~assets/fonts/JetBrainsMono-Regular.woff") format("woff"),url("~assets/fonts/JetBrainsMono-Regular.otf") format("opentype");@@ -95,7 +109,9 @@font-style: normal;font-weight: 600;font-display: swap;- src: local("JetBrainsMono-Bold"), local("JetBrains Mono Bold"),+ src:+ local("JetBrainsMono-Bold"),+ local("JetBrains Mono Bold"),url("~assets/fonts/JetBrainsMono-Bold.woff2") format("woff2"),url("~assets/fonts/JetBrainsMono-Bold.woff") format("woff"),url("~assets/fonts/JetBrainsMono-Bold.otf") format("opentype");diff --git a/frontend/src/components/VCheckbox/VCheckbox.vue b/frontend/src/components/VCheckbox/VCheckbox.vueindex 7a9d892ff..fe7580ec3 100644--- a/frontend/src/components/VCheckbox/VCheckbox.vue+++ b/frontend/src/components/VCheckbox/VCheckbox.vue@@ -37,8 +37,8 @@localCheckedState? ['bg-white', 'translate-x-[1.125rem]']: disabled- ? ['bg-dark-charcoal-40']- : ['bg-dark-charcoal']+ ? ['bg-dark-charcoal-40']+ : ['bg-dark-charcoal']"aria-hidden="true"/>diff --git a/frontend/src/components/VSearchResultsGrid/VAudioList.vue b/frontend/src/components/VSearchResultsGrid/VAudioList.vueindex f061085f9..fe7618e32 100644--- a/frontend/src/components/VSearchResultsGrid/VAudioList.vue+++ b/frontend/src/components/VSearchResultsGrid/VAudioList.vue@@ -60,8 +60,8 @@ export default defineComponent({return !uiStore.isBreakpoint("sm")? "s": uiStore.isBreakpoint("xl")- ? "l"- : "m"+ ? "l"+ : "m"}})diff --git a/frontend/src/components/VSearchResultsGrid/VAudioResult.vue b/frontend/src/components/VSearchResultsGrid/VAudioResult.vueindex 2c7361639..30924848a 100644--- a/frontend/src/components/VSearchResultsGrid/VAudioResult.vue+++ b/frontend/src/components/VSearchResultsGrid/VAudioResult.vue@@ -88,8 +88,8 @@ export default defineComponent({props.kind === "related"? "VRelatedAudio": props.layout === "box"- ? "VAllResultsGrid"- : "AudioSearch"+ ? "VAllResultsGrid"+ : "AudioSearch"sendCustomEvent("AUDIO_INTERACTION", { ...data, component })}diff --git a/frontend/src/composables/use-i18n-utilities.ts b/frontend/src/composables/use-i18n-utilities.tsindex eb6c46371..8a2025950 100644--- a/frontend/src/composables/use-i18n-utilities.ts+++ b/frontend/src/composables/use-i18n-utilities.ts@@ -68,8 +68,8 @@ function getCountKey(resultsCount: number) {return resultsCount === 0? "noResult": resultsCount >= 10000- ? "more"- : "result"+ ? "more"+ : "result"}/**diff --git a/frontend/src/data/media-service.ts b/frontend/src/data/media-service.tsindex e377e1523..fa6671fdb 100644--- a/frontend/src/data/media-service.ts+++ b/frontend/src/data/media-service.ts@@ -10,7 +10,7 @@ import { AUDIO, type SupportedMediaType } from "~/constants/media"import type { AxiosResponse } from "axios"export interface MediaResult<- T extends Media | Media[] | Record<string, Media>+ T extends Media | Media[] | Record<string, Media>,> {result_count: numberpage_count: number@@ -38,10 +38,13 @@ class MediaService<T extends Media> {const mediaResults = <T[]>data.results ?? []return {...data,- results: mediaResults.reduce((acc, item) => {- acc[item.id] = decodeMediaData(item, this.mediaType)- return acc- }, {} as Record<string, T>),+ results: mediaResults.reduce(+ (acc, item) => {+ acc[item.id] = decodeMediaData(item, this.mediaType)+ return acc+ },+ {} as Record<string, T>+ ),}}diff --git a/frontend/src/stores/feature-flag.ts b/frontend/src/stores/feature-flag.tsindex 1e266c9db..ba4c8bf61 100644--- a/frontend/src/stores/feature-flag.ts+++ b/frontend/src/stores/feature-flag.ts@@ -77,7 +77,7 @@ export const useFeatureFlagStore = defineStore(FEATURE_FLAG, {state: () =>({flags: featureData.features,- } as FeatureFlagState),+ }) as FeatureFlagState,getters: {/*** Get the state of the named feature, based on config and cookie.diff --git a/frontend/src/stores/search.ts b/frontend/src/stores/search.tsindex 6c15534fb..6e96e3077 100644--- a/frontend/src/stores/search.ts+++ b/frontend/src/stores/search.ts@@ -183,7 +183,7 @@ export const useSearchStore = defineStore("search", {isAnyFilterApplied() {const filterEntries = Object.entries(this.searchFilters) as [string,- FilterItem[]+ FilterItem[],][]return filterEntries.some(([, filterItems]) =>filterItems.some((filter) => filter.checked)diff --git a/frontend/test/playwright/utils/navigation.ts b/frontend/test/playwright/utils/navigation.tsindex 1c6be799e..6bf3acafd 100644--- a/frontend/test/playwright/utils/navigation.ts+++ b/frontend/test/playwright/utils/navigation.ts@@ -84,8 +84,8 @@ export const setContentSwitcherState = async (!isDesktop? "#content-settings-button": contentSwitcherKind === "filters"- ? "#filter-button"- : "#search-type-button"+ ? "#filter-button"+ : "#search-type-button")const isPressed = await getSelectorPressed(buttonLocator)diff --git a/frontend/test/unit/specs/plugins/api-token.server.spec.ts b/frontend/test/unit/specs/plugins/api-token.server.spec.tsindex c2f651f69..3c017d232 100644--- a/frontend/test/unit/specs/plugins/api-token.server.spec.ts+++ b/frontend/test/unit/specs/plugins/api-token.server.spec.ts@@ -47,7 +47,7 @@ const getMockContext = ($config: $config = defaultConfig) =>captureException: jest.fn(),},$config: $config,- } as unknown as Context)+ }) as unknown as Contextconst mockInject = jest.fn()diff --git a/package.json b/package.jsonindex 3b1912b11..db0959bd0 100644--- a/package.json+++ b/package.json@@ -23,8 +23,8 @@},"devDependencies": {"@openverse/eslint-plugin": "workspace:0.0.0",- "prettier": "2.8.8",- "prettier-plugin-tailwindcss": "0.4.1",+ "prettier": "3.2.5",+ "prettier-plugin-tailwindcss": "0.5.11","typescript": "5.2.2","vue-tsc": "1.8.27"},diff --git a/packages/eslint-plugin/src/rules/analytics-configuration.ts b/packages/eslint-plugin/src/rules/analytics-configuration.tsindex d15d93c3e..829127db0 100644--- a/packages/eslint-plugin/src/rules/analytics-configuration.ts+++ b/packages/eslint-plugin/src/rules/analytics-configuration.ts@@ -5,7 +5,7 @@ import type { TSESTree } from "@typescript-eslint/utils"type Options = readonly [{reservedPropNames: string[]- }+ },]const messages = {diff --git a/packages/eslint-plugin/test/rules/analytics-configuration.spec.ts b/packages/eslint-plugin/test/rules/analytics-configuration.spec.tsindex 633f8dbe9..bec99fefb 100644--- a/packages/eslint-plugin/test/rules/analytics-configuration.spec.ts+++ b/packages/eslint-plugin/test/rules/analytics-configuration.spec.ts@@ -65,7 +65,7 @@ tester.run(data: { eventName: eventName.replace(/'/g, "") },},],- } as const)+ }) as const),...invalidPayloadTypes.map((payloadType) =>@@ -78,7 +78,7 @@ tester.run(}`,errors: [{ messageId: "emptyPayloadType" }],- } as const)+ }) as const),...mockReservedPropNames.map((propName) =>@@ -100,7 +100,7 @@ tester.run(errors: [{ messageId: "reservedPayloadPropNames", data: { propName } },],- } as const)+ }) as const),...invalidPayloadValueTypes.map((payloadPropType) =>@@ -115,7 +115,7 @@ tester.run(}`,errors: [{ messageId: "invalidPayloadFormat" }],- } as const)+ }) as const),],valid: [@@ -129,7 +129,7 @@ tester.run(${eventName}: never}`,- } as const)+ }) as const),{...baseTestCase,@@ -169,7 +169,7 @@ tester.run(}}`,- } as const)+ }) as const),],}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ccfa2b28d..465f66135 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -12,11 +12,11 @@ importers:specifier: workspace:0.0.0version: link:packages/eslint-pluginprettier:- specifier: 2.8.8- version: 2.8.8+ specifier: 3.2.5+ version: 3.2.5prettier-plugin-tailwindcss:- specifier: 0.4.1- version: 0.4.1([email protected])+ specifier: 0.5.11+ version: 0.5.11([email protected])typescript:specifier: 5.2.2version: 5.2.2@@ -128,7 +128,7 @@ importers:version: 5.3.3nuxt:specifier: ^2.17.2- version: 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])pinia:specifier: ^2.0.33version: 2.0.33([email protected])([email protected])@@ -4703,14 +4703,14 @@ packages:- vuedev: false- /@nuxt/[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):+ /@nuxt/[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-6NYsLD2Ss3QjJ8vgNVhdXvn44CPVLotnNAnq3/WGpkxRloebqBxjUTzLQUjsZ/U7STH00TWCUAkhq8zpSzEogw==}engines: {node: ^14.18.0 || >=16.10.0}dependencies:'@nuxt/devalue': 2.0.2'@nuxt/utils': 2.17.2'@nuxt/vue-app': 2.17.2- '@nuxt/webpack': 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])+ '@nuxt/webpack': 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])chalk: 4.1.2chokidar: 3.5.3consola: 3.2.3@@ -5100,7 +5100,7 @@ packages:vue-server-renderer: 2.7.15dev: false- /@nuxt/[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):+ /@nuxt/[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-QcV5Oo0ObpAG8bAiqYbIIf+SwhVJutTSOgf05NHob9VcPEXwCwDjO8zICrVgKvdjWnmlg5GFySaVMa407puE6g==}engines: {node: ^14.18.0 || >=16.10.0}dependencies:@@ -5141,7 +5141,7 @@ packages:ufo: 1.3.1upath: 2.0.1url-loader: 4.1.1([email protected])([email protected])- vue-loader: 15.11.1([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vue-loader: 15.11.1([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])vue-style-loader: 4.1.3vue-template-compiler: 2.7.15watchpack: 2.4.0@@ -5230,7 +5230,7 @@ packages:estree-walker: 2.0.2fs-extra: 9.1.0magic-string: 0.26.3- nuxt: 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])+ nuxt: 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])pathe: 0.3.5ufo: 0.8.5vue: 2.7.15@@ -16466,13 +16466,13 @@ packages:commander: 5.1.0dev: false- /[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):+ /[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-7m/ViWSGAY6ffTxsgaSzWnFUc7LXxoAzSkGaK7qbBTcQSC9TlHhkgM9KIZMq6j4tjLvXadvb9Ks2JUBw69RJgA==}hasBin: truerequiresBuild: truedependencies:'@nuxt/babel-preset-app': 2.17.2([email protected])- '@nuxt/builder': 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])+ '@nuxt/builder': 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])'@nuxt/cli': 2.17.2'@nuxt/components': 2.2.1'@nuxt/config': 2.17.2@@ -16485,7 +16485,7 @@ packages:'@nuxt/utils': 2.17.2'@nuxt/vue-app': 2.17.2'@nuxt/vue-renderer': 2.17.2- '@nuxt/webpack': 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])+ '@nuxt/webpack': 2.17.2([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- '@vue/compiler-sfc'- acorn@@ -18392,16 +18392,15 @@ packages:engines: {node: '>=0.10.0'}dev: false- resolution: {integrity: sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==}- engines: {node: '>=12.17.0'}+ resolution: {integrity: sha512-AvI/DNyMctyyxGOjyePgi/gqj5hJYClZ1avtQvLlqMT3uDZkRbi4HhGUpok3DRzv9z7Lti85Kdj3s3/1CeNI0w==}+ engines: {node: '>=14.21.3'}peerDependencies:'@ianvs/prettier-plugin-sort-imports': '*''@prettier/plugin-pug': '*''@shopify/prettier-plugin-liquid': '*'- '@shufo/prettier-plugin-blade': '*''@trivago/prettier-plugin-sort-imports': '*'- prettier: ^2.2 || ^3.0+ prettier: ^3.0prettier-plugin-astro: '*'prettier-plugin-css-order: '*'prettier-plugin-import-sort: '*'@@ -18419,8 +18418,6 @@ packages:optional: true'@shopify/prettier-plugin-liquid':optional: true- '@shufo/prettier-plugin-blade':- optional: true'@trivago/prettier-plugin-sort-imports':optional: trueprettier-plugin-astro:@@ -18444,7 +18441,7 @@ packages:prettier-plugin-twig-melody:optional: truedependencies:- prettier: 2.8.8+ prettier: 3.2.5dev: true@@ -18458,6 +18455,12 @@ packages:engines: {node: '>=10.13.0'}hasBin: truerequiresBuild: true+ optional: true++ resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}+ engines: {node: '>=14'}+ hasBin: trueresolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==}@@ -21643,7 +21646,7 @@ packages:- whiskersdev: true- /[email protected]([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ /[email protected]([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==}peerDependencies:'@vue/compiler-sfc': ^3.0.8@@ -21667,7 +21670,7 @@ packages:css-loader: 5.2.7([email protected])hash-sum: 1.0.2loader-utils: 1.4.2- prettier: 2.8.8+ prettier: 3.2.5vue-hot-reload-api: 2.3.4vue-style-loader: 4.1.3vue-template-compiler: 2.7.15diff --git a/prettier.config.js b/prettier.config.jsindex 7480c3937..33f7b4fda 100644--- a/prettier.config.js+++ b/prettier.config.js@@ -14,7 +14,7 @@ module.exports = {{files: ["frontend/**/*"],options: {- plugins: [require("prettier-plugin-tailwindcss")],+ plugins: ["prettier-plugin-tailwindcss"],tailwindConfig: "frontend/tailwind.config.ts",vueIndentScriptAndStyle: false,},