From 31c21115e9198ce9cd41658e7f42fca4b0ed25a3 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 26 Apr 2022 12:04:30 +0200 Subject: [PATCH 01/10] scope prettier to clean only apps for now --- .github/workflows/prettier.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 1972d75eebf..c71fb46be16 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -14,7 +14,7 @@ jobs: # disable this check while we migrate to monorepo - name: Run prettier run: |- - npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}' + npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,json}' # run: |- # function run_check() { # if $(grep -q '"prettier"' "$1") ; then diff --git a/package.json b/package.json index b54660a4308..58174515ed8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build": "turbo run build", "dev": "turbo run dev --parallel", "lint": "turbo run lint", - "format": "prettier --write \"**/*.{ts,tsx,md}\"", + "format": "prettier --write \"apps/**/*.{ts,tsx,md}\"", "docker:dev": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml up --renew-anon-volumes", "docker:up": "cd docker && docker-compose up", "docker:down": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml down --remove-orphans", From dbc4a35616d5f2a5554b78295079fe0a23a1c8d6 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 26 Apr 2022 12:06:02 +0200 Subject: [PATCH 02/10] commit all changes from formatter --- apps/www/components/AdminAccess/tabs.tsx | 2 +- .../AuthWidget/AuthComponentExample.tsx | 8 +- apps/www/components/AuthWidget/AuthWidget.tsx | 8 +- apps/www/components/Blog/BlogHeader.tsx | 2 +- apps/www/components/Blog/BlogListItem.tsx | 16 +- .../components/BuiltWithSupabase/index.tsx | 4 +- apps/www/components/Button.tsx | 6 +- apps/www/components/CTABanner/index.tsx | 2 +- apps/www/components/Card.tsx | 14 +- .../components/Carousels/ImageCarousel.tsx | 12 +- .../Carousels/SplitCodeBlockCarousel.tsx | 10 +- apps/www/components/CaseStudies/benchmark.tsx | 12 +- apps/www/components/CaseStudies/index.tsx | 2 +- apps/www/components/CodeBlock/CodeBlock.tsx | 4 +- apps/www/components/DarkModeToggle.tsx | 8 +- apps/www/components/EnterpriseContactForm.tsx | 4 +- apps/www/components/ExampleCard.tsx | 36 ++-- apps/www/components/FeatureColumn.tsx | 4 +- apps/www/components/Features/index.tsx | 8 +- .../FloatingIcons/FloatingIcons.tsx | 4 +- apps/www/components/Footer/index.tsx | 20 +-- apps/www/components/Hero.tsx | 38 ++--- apps/www/components/ImageGrid.tsx | 16 +- .../components/Layouts/SectionContainer.tsx | 2 +- .../MadeForDevelopers/CodeExamples.tsx | 8 +- .../components/MadeForDevelopers/index.tsx | 4 +- apps/www/components/Nav/Announcement.tsx | 22 +-- apps/www/components/Nav/Company.tsx | 18 +- apps/www/components/Nav/Developers.tsx | 20 +-- apps/www/components/Nav/Product.tsx | 16 +- apps/www/components/Nav/index.tsx | 96 +++++------ .../components/Partners/BecomeAPartners.tsx | 6 +- .../components/Partners/PartnerLinkBox.tsx | 14 +- apps/www/components/Partners/TileGrid.tsx | 16 +- apps/www/components/PricingAddOnTable.tsx | 26 +-- apps/www/components/PricingTableRow.tsx | 32 ++-- apps/www/components/ProductIcon.tsx | 2 +- apps/www/components/Quote.tsx | 6 +- apps/www/components/ScrollableCodeBlock.tsx | 10 +- apps/www/components/Sections/APISection.tsx | 4 +- .../components/Sections/FunctionsUsecases.tsx | 10 +- .../components/Sections/GithubExamples.tsx | 8 +- .../www/components/Sections/ProductHeader.tsx | 8 +- .../Sections/TwitterSocialProof.tsx | 8 +- apps/www/components/TextLink.tsx | 4 +- apps/www/components/TweetCard.tsx | 12 +- apps/www/components/UI/FlyOut.tsx | 12 +- apps/www/components/UI/SectionHeader.tsx | 4 +- apps/www/data/Community.tsx | 4 +- apps/www/pages/404.tsx | 16 +- apps/www/pages/auth/Auth.tsx | 18 +- apps/www/pages/beta.tsx | 158 +++++++++--------- apps/www/pages/blog.tsx | 24 +-- .../blog/[year]/[month]/[day]/[slug].tsx | 44 ++--- apps/www/pages/blog/tags/[tag].tsx | 2 +- apps/www/pages/brand-assets.tsx | 16 +- apps/www/pages/company.tsx | 72 ++++---- apps/www/pages/contact/enterprise.tsx | 4 +- apps/www/pages/database/Database.tsx | 28 ++-- .../pages/edge-functions/edge-functions.tsx | 38 ++--- apps/www/pages/partners/[slug].tsx | 18 +- apps/www/pages/partners/experts/index.tsx | 8 +- .../www/pages/partners/integrations/index.tsx | 16 +- apps/www/pages/pricing/index.tsx | 138 +++++++-------- apps/www/pages/storage/Storage.tsx | 18 +- apps/www/pages/support.tsx | 64 +++---- 66 files changed, 647 insertions(+), 647 deletions(-) diff --git a/apps/www/components/AdminAccess/tabs.tsx b/apps/www/components/AdminAccess/tabs.tsx index 753b2f85b44..95ba72ef503 100644 --- a/apps/www/components/AdminAccess/tabs.tsx +++ b/apps/www/components/AdminAccess/tabs.tsx @@ -14,7 +14,7 @@ function Tabs(props: Props) { } return ( -
or continue with
- +