From 30f214756614d976d10993495a86efd4d992842a Mon Sep 17 00:00:00 2001 From: Aaron William Po Date: Fri, 1 Dec 2023 18:18:43 -0500 Subject: [PATCH] Format: update prettier configuration to use tailwind plugin --- .prettierrc | 2 +- package-lock.json | 22 +++++++++---------- package.json | 2 +- src/components/Account/AccountInfo.tsx | 2 +- src/components/Account/BeerPostsByUser.tsx | 2 +- src/components/Account/BreweryPostsByUser.tsx | 2 +- src/components/Account/DeleteAccount.tsx | 6 ++--- src/components/Account/Security.tsx | 2 +- src/components/Account/UserAvatar.tsx | 6 ++--- src/components/Account/UserPosts.tsx | 6 ++--- .../BeerBreweryComments/CommentCardBody.tsx | 6 ++--- .../CommentCardDropdown.tsx | 6 ++--- .../CommentContentBody.tsx | 2 +- .../BeerBreweryComments/EditCommentBody.tsx | 8 +++---- src/components/BeerById/BeerInfoHeader.tsx | 2 +- .../BeerById/BeerRecommendations.tsx | 2 +- src/components/BeerIndex/BeerCard.tsx | 2 +- .../BeerStyleById/BeerStyleHeader.tsx | 4 ++-- .../BeerStyleIndex/BeerStyleCard.tsx | 4 ++-- .../BreweryById/BreweryBeerSection.tsx | 4 ++-- .../BreweryById/BreweryInfoHeader.tsx | 2 +- src/components/BreweryIndex/BreweryCard.tsx | 4 ++-- .../BreweryPost/CreateBreweryPostForm.tsx | 6 ++--- src/components/CreateBeerPostForm.tsx | 2 +- src/components/EditBeerPostForm.tsx | 2 +- src/components/UserPage/UserFollowButton.tsx | 2 +- src/components/UserPage/UserHeader.tsx | 6 ++--- src/components/ui/CommentsComponent.tsx | 2 +- src/components/ui/CustomToast.tsx | 4 ++-- src/components/ui/LikeButton.tsx | 2 +- src/components/ui/Navbar.tsx | 10 ++++----- src/components/ui/forms/Button.tsx | 2 +- src/components/ui/forms/FormPageLayout.tsx | 2 +- src/components/ui/forms/FormSelect.tsx | 2 +- src/components/ui/forms/FormTextArea.tsx | 2 +- src/components/ui/forms/FormTextInput.tsx | 2 +- src/emails/ForgotEmail.tsx | 4 ++-- src/pages/account/index.tsx | 4 ++-- src/pages/account/profile.tsx | 2 +- src/pages/beers/[id]/index.tsx | 2 +- src/pages/beers/index.tsx | 2 +- src/pages/beers/search.tsx | 2 +- src/pages/beers/styles/[id]/index.tsx | 2 +- src/pages/beers/styles/index.tsx | 2 +- src/pages/breweries/[id]/edit.tsx | 4 ++-- src/pages/breweries/[id]/index.tsx | 2 +- src/pages/breweries/index.tsx | 6 ++--- src/pages/users/[id].tsx | 2 +- src/pages/users/confirm.tsx | 2 +- src/pages/users/forgot-password.tsx | 6 ++--- 50 files changed, 92 insertions(+), 94 deletions(-) diff --git a/.prettierrc b/.prettierrc index 5e0624c..10383ac 100644 --- a/.prettierrc +++ b/.prettierrc @@ -10,5 +10,5 @@ "tabWidth": 2, "trailingComma": "all", "useTabs": false, - "plugins": ["prettier-plugin-jsdoc"] + "plugins": ["prettier-plugin-jsdoc", "prettier-plugin-tailwindcss"] } diff --git a/package-lock.json b/package-lock.json index 83d4ca1..65f5dbc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -78,7 +78,7 @@ "postcss": "^8.4.26", "prettier": "^3.0.0", "prettier-plugin-jsdoc": "^1.0.2", - "prettier-plugin-tailwindcss": "^0.4.1", + "prettier-plugin-tailwindcss": "^0.5.7", "prisma": "^5.6.0", "tailwindcss": "^3.3.3", "tailwindcss-animate": "^1.0.6", @@ -8426,12 +8426,12 @@ } }, "node_modules/prettier-plugin-tailwindcss": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.1.tgz", - "integrity": "sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==", + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz", + "integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==", "dev": true, "engines": { - "node": ">=12.17.0" + "node": ">=14.21.3" }, "peerDependencies": { "@ianvs/prettier-plugin-sort-imports": "*", @@ -8439,17 +8439,15 @@ "@shopify/prettier-plugin-liquid": "*", "@shufo/prettier-plugin-blade": "*", "@trivago/prettier-plugin-sort-imports": "*", - "prettier": "^2.2 || ^3.0", + "prettier": "^3.0", "prettier-plugin-astro": "*", "prettier-plugin-css-order": "*", "prettier-plugin-import-sort": "*", "prettier-plugin-jsdoc": "*", - "prettier-plugin-marko": "*", "prettier-plugin-organize-attributes": "*", "prettier-plugin-organize-imports": "*", "prettier-plugin-style-order": "*", - "prettier-plugin-svelte": "*", - "prettier-plugin-twig-melody": "*" + "prettier-plugin-svelte": "*" }, "peerDependenciesMeta": { "@ianvs/prettier-plugin-sort-imports": { @@ -16725,9 +16723,9 @@ } }, "prettier-plugin-tailwindcss": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.1.tgz", - "integrity": "sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==", + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz", + "integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==", "dev": true, "requires": {} }, diff --git a/package.json b/package.json index 7c8276c..25ef716 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "postcss": "^8.4.26", "prettier": "^3.0.0", "prettier-plugin-jsdoc": "^1.0.2", - "prettier-plugin-tailwindcss": "^0.4.1", + "prettier-plugin-tailwindcss": "^0.5.7", "prisma": "^5.6.0", "tailwindcss": "^3.3.3", "tailwindcss-animate": "^1.0.6", diff --git a/src/components/Account/AccountInfo.tsx b/src/components/Account/AccountInfo.tsx index a59b52c..0652075 100644 --- a/src/components/Account/AccountInfo.tsx +++ b/src/components/Account/AccountInfo.tsx @@ -159,7 +159,7 @@ const AccountInfo: FC = ({ pageState, dispatch }) => { ) : (