From 0093469e0b7435b19c0c7517d2692e9dd40708d4 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Thu, 19 Dec 2024 13:18:35 +0000 Subject: [PATCH] prettier --- .prettierrc | 2 +- package.json | 1 + pnpm-lock.yaml | 61 +++++++++++++++++++ src/app/conf/2023/faq/page.tsx | 2 +- src/app/conf/2023/gallery/page.tsx | 10 +-- src/app/conf/2023/layout.tsx | 12 ++-- src/app/conf/2023/page.tsx | 14 ++--- src/app/conf/2023/schedule/page.tsx | 14 ++--- src/app/conf/2023/sessions/[id]/page.tsx | 24 ++++---- src/app/conf/2023/sessions/page.tsx | 2 +- src/app/conf/2023/speakers/[id]/page.tsx | 10 +-- src/app/conf/2023/speakers/page.tsx | 6 +- src/app/conf/2024/about.tsx | 20 +++--- src/app/conf/2024/faq/page.tsx | 2 +- src/app/conf/2024/layout.tsx | 12 ++-- src/app/conf/2024/page.tsx | 30 ++++----- src/app/conf/2024/partner/page.tsx | 2 +- src/app/conf/2024/pricing.tsx | 18 +++--- src/app/conf/2024/schedule/[id]/page.tsx | 26 ++++---- src/app/conf/2024/schedule/page.tsx | 16 ++--- src/app/conf/2024/speak/page.tsx | 2 +- src/app/conf/2024/speakers/[id]/page.tsx | 10 +-- src/app/conf/2024/speakers/page.tsx | 8 +-- src/app/conf/2024/sponsors.tsx | 12 ++-- src/app/conf/2024/venue.tsx | 12 ++-- src/app/conf/2025/faq.tsx | 18 +++--- src/app/conf/2025/layout.tsx | 12 ++-- src/app/conf/2025/page.tsx | 14 ++--- src/app/conf/2025/past-sponsors.tsx | 10 +-- src/app/conf/2025/register.tsx | 4 +- src/app/conf/2025/sponsorship.tsx | 4 +- src/app/conf/2025/venue.tsx | 12 ++-- src/app/conf/_components/about.tsx | 20 +++--- src/app/conf/_components/button.tsx | 8 +-- src/app/conf/_components/footer.tsx | 10 +-- src/app/conf/_components/grid-button.tsx | 4 +- src/app/conf/_components/header.tsx | 18 +++--- .../_components/infinite-moving-speakers.tsx | 2 +- src/app/conf/_components/info-grid.tsx | 10 +-- .../conf/_components/schedule/back-link.tsx | 2 +- src/app/conf/_components/schedule/filters.tsx | 10 +-- .../_components/schedule/schedule-list.tsx | 34 +++++------ .../_components/schedule/session-list.tsx | 30 ++++----- src/app/conf/_components/social-icons.tsx | 2 +- src/app/conf/_components/speakers/avatar.tsx | 2 +- src/app/conf/_components/speakers/index.tsx | 20 +++--- src/app/conf/_components/speakers/speaker.tsx | 8 +-- src/app/conf/_components/sponsors.tsx | 16 ++--- src/app/conf/_components/thanks.tsx | 10 +-- src/app/not-found.tsx | 4 +- src/components/card.tsx | 6 +- src/components/cards.tsx | 8 +-- .../index-page/bring-your-own-code.tsx | 6 +- src/components/index-page/hero.tsx | 12 ++-- src/components/index-page/index.tsx | 2 +- .../index-page/infinite-moving-cards.tsx | 2 +- src/components/index-page/powerful-tools.tsx | 10 +-- .../index-page/predictable-results/index.tsx | 4 +- .../index-page/single-request/index.tsx | 6 +- src/components/index-page/type-system.tsx | 4 +- src/components/index-page/who-is-using.tsx | 6 +- src/components/index-page/without-version.tsx | 4 +- src/components/radio.tsx | 4 +- src/components/tag.tsx | 2 +- src/components/tools-and-libraries.tsx | 28 ++++----- src/globals.css | 38 ++++++------ src/pages/_meta.tsx | 2 +- src/pages/blog/_meta.tsx | 6 +- src/pages/community/foundation/_meta.tsx | 2 +- theme.config.tsx | 16 ++--- 70 files changed, 421 insertions(+), 359 deletions(-) diff --git a/.prettierrc b/.prettierrc index 72faee5d53..4041064071 100644 --- a/.prettierrc +++ b/.prettierrc @@ -18,5 +18,5 @@ } } ], - "plugins": ["prettier-plugin-pkg"] + "plugins": ["prettier-plugin-pkg", "prettier-plugin-tailwindcss"] } diff --git a/package.json b/package.json index a558f8da45..d285e5454d 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "eslint-plugin-tailwindcss": "3.17.5", "prettier": "3.4.2", "prettier-plugin-pkg": "^0.18.1", + "prettier-plugin-tailwindcss": "^0.6.9", "remark-frontmatter": "5.0.0", "remark-lint-first-heading-level": "3.1.2", "remark-lint-heading-increment": "3.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b9c3613ae9..fb67da5ff0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -194,6 +194,9 @@ importers: prettier-plugin-pkg: specifier: ^0.18.1 version: 0.18.1(prettier@3.4.2) + prettier-plugin-tailwindcss: + specifier: ^0.6.9 + version: 0.6.9(prettier@3.4.2) remark-frontmatter: specifier: 5.0.0 version: 5.0.0 @@ -7631,6 +7634,64 @@ packages: prettier: 3.4.2 dev: true + /prettier-plugin-tailwindcss@0.6.9(prettier@3.4.2): + resolution: {integrity: sha512-r0i3uhaZAXYP0At5xGfJH876W3HHGHDp+LCRUJrs57PBeQ6mYHMwr25KH8NPX44F2yGTvdnH7OqCshlQx183Eg==} + engines: {node: '>=14.21.3'} + peerDependencies: + '@ianvs/prettier-plugin-sort-imports': '*' + '@prettier/plugin-pug': '*' + '@shopify/prettier-plugin-liquid': '*' + '@trivago/prettier-plugin-sort-imports': '*' + '@zackad/prettier-plugin-twig-melody': '*' + prettier: ^3.0 + prettier-plugin-astro: '*' + prettier-plugin-css-order: '*' + prettier-plugin-import-sort: '*' + prettier-plugin-jsdoc: '*' + prettier-plugin-marko: '*' + prettier-plugin-multiline-arrays: '*' + prettier-plugin-organize-attributes: '*' + prettier-plugin-organize-imports: '*' + prettier-plugin-sort-imports: '*' + prettier-plugin-style-order: '*' + prettier-plugin-svelte: '*' + peerDependenciesMeta: + '@ianvs/prettier-plugin-sort-imports': + optional: true + '@prettier/plugin-pug': + optional: true + '@shopify/prettier-plugin-liquid': + optional: true + '@trivago/prettier-plugin-sort-imports': + optional: true + '@zackad/prettier-plugin-twig-melody': + optional: true + prettier-plugin-astro: + optional: true + prettier-plugin-css-order: + optional: true + prettier-plugin-import-sort: + optional: true + prettier-plugin-jsdoc: + optional: true + prettier-plugin-marko: + optional: true + prettier-plugin-multiline-arrays: + optional: true + prettier-plugin-organize-attributes: + optional: true + prettier-plugin-organize-imports: + optional: true + prettier-plugin-sort-imports: + optional: true + prettier-plugin-style-order: + optional: true + prettier-plugin-svelte: + optional: true + dependencies: + prettier: 3.4.2 + dev: true + /prettier@3.4.2: resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==} engines: {node: '>=14'} diff --git a/src/app/conf/2023/faq/page.tsx b/src/app/conf/2023/faq/page.tsx index 47c15692ef..4399610933 100644 --- a/src/app/conf/2023/faq/page.tsx +++ b/src/app/conf/2023/faq/page.tsx @@ -12,7 +12,7 @@ export default function FAQPage() { <>
-
+
diff --git a/src/app/conf/2023/gallery/page.tsx b/src/app/conf/2023/gallery/page.tsx index d1656231c5..83769b843d 100644 --- a/src/app/conf/2023/gallery/page.tsx +++ b/src/app/conf/2023/gallery/page.tsx @@ -23,7 +23,7 @@ export default function GalleryPage() { return (
-
+
{currentImages.map((c, i) => { function getCard(index: number) { return ( @@ -31,7 +31,7 @@ export default function GalleryPage() { @@ -40,15 +40,15 @@ export default function GalleryPage() { } return ( -
-
+
+
{getCard(0)} {getCard(1)}
{getCard(2)}
-
+
{getCard(3)}
{getCard(4)} diff --git a/src/app/conf/2023/layout.tsx b/src/app/conf/2023/layout.tsx index 208d9ccfa5..4669949d2c 100644 --- a/src/app/conf/2023/layout.tsx +++ b/src/app/conf/2023/layout.tsx @@ -49,10 +49,10 @@ export default function ConfLayout({ logo={ - 2023 + 2023 } links={[ @@ -72,12 +72,12 @@ export default function ConfLayout({ {children}