chore: prettier on everything#1262
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR applies Prettier-driven formatting across the repo to normalize code style (imports, wrapping, quotes, JSX/TS formatting) and tidy Markdown/MDX whitespace.
Changes:
- Reformat TS/TSX/JS files (imports ordering, wrapping long expressions/props, consistent quoting/semicolons).
- Reformat config/scripts and tests to match the same style (object/array formatting, long-line wrapping).
- Normalize MDX/Markdown formatting (whitespace cleanup, quote consistency in frontmatter, list/table formatting).
Reviewed changes
Copilot reviewed 116 out of 119 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Condenses arrays/paths/exclude formatting. |
| tailwind.config.js | Normalizes quoting in plugins requires. |
| src/utils/resend.ts | Line-wrapping/formatting for boolean return and Error construction. |
| src/utils/pagination-redirects.ts | Removes trailing whitespace/newline. |
| src/utils/newsletterStructuredData.ts | Removes trailing whitespace/newline. |
| src/utils/mikePersonStructuredData.ts | Quote normalization for string with apostrophe. |
| src/utils/MDXProviderWrapper.tsx | Import ordering + JSX/className formatting. |
| src/utils/mdx.ts | Removes trailing whitespace/newline. |
| src/utils/generateStructuredData.tsx | Wraps long conditional assignment. |
| src/utils/generateStructuredData.test.ts | Test object/expect formatting + wrapping. |
| src/utils/email/templates/WelcomeEmail.tsx | JSX prop wrapping and link formatting. |
| src/utils/email/templates/NewsletterEmail.tsx | Import consolidation + prop object wrapping. |
| src/utils/email/templates/ExampleEmail.tsx | Import ordering cleanup. |
| src/utils/email/templates/EmailLayout.tsx | JSX wrapping for readability. |
| src/server/routers/mailingList.ts | Wraps debug console.log object formatting. |
| src/server/context.ts | Wraps function signature formatting. |
| src/pages/work.tsx | Import ordering (types vs values). |
| src/pages/topics/index.tsx | Import spacing + minor JSX wrapping. |
| src/pages/topics/[slug].tsx | Import ordering + sort/SEO JSX wrapping. |
| src/pages/tags/[tag].tsx | Import specifier ordering. |
| src/pages/shop.tsx | JSX indentation/structure formatting. |
| src/pages/series/[slug].tsx | Tailwind class ordering. |
| src/pages/search.tsx | Import ordering + JSX prop wrapping. |
| src/pages/posts/[slug].tsx | Import ordering + wrapping long props/expressions. |
| src/pages/podcast/index.tsx | Import ordering + JSX prop wrapping. |
| src/pages/page/[page].tsx | Condenses getStaticProps signature formatting. |
| src/pages/newsletter/page/[page].tsx | Tailwind class ordering. |
| src/pages/newsletter/[slug].tsx | Import ordering + wrap long expression. |
| src/pages/api/trpc/[trpc].ts | Import ordering + type signature formatting. |
| src/pages/about/index.tsx | Import ordering + JSX indentation fix. |
| src/lib/unified-feed.ts | Removes trailing whitespace/newline. |
| src/lib/unified-feed.test.ts | Wraps helper/test data formatting. |
| src/lib/topics.ts | Removes extra blank line. |
| src/lib/tags/TagRegistry.ts | Wraps long return + chains .sort().slice() on one line. |
| src/lib/related-posts.test.ts | Wraps arrays/function call formatting. |
| src/lib/blog.ts | Removes trailing whitespace/newline. |
| src/hooks/usePagefind.ts | Import ordering + wraps long log/setter lines. |
| src/hooks/usePagefind.test.ts | Import ordering + whitespace. |
| src/data/posts/text-wrap-pretty-for-subtle-visual-balance.mdx | Removes extra blank lines + normalizes snippet formatting. |
| src/data/posts/text-wrap-balance-will-make-your-designs-better.mdx | Tailwind class ordering in example snippet. |
| src/data/posts/self-healing-urls-nextjs-seo.mdx | Code block import ordering/wrapping in article content. |
| src/data/posts/reduce-nextjs-bandwidth-with-link-prefetch.mdx | Removes extra blank lines + table formatting normalization. |
| src/data/posts/patching-npm-dependencies-with-pnpm-patch.mdx | Frontmatter quote normalization + MDX formatting. |
| src/data/newsletters/zeroth-loop-they-dont-quit-they-forget.mdx | Whitespace + JSX/HTML attribute formatting. |
| src/data/newsletters/unreasonable-hospitality-and-design.mdx | Removes extra blank lines. |
| src/data/newsletters/stop-counting-clicks.mdx | Frontmatter quote normalization + emphasis marker normalization. |
| src/data/newsletters/product-is-a-signal.mdx | Frontmatter quote normalization + content escaping change. |
| src/data/newsletters/optimal-stopping-problem-for-founders.mdx | Frontmatter quote normalization + spacing. |
| src/data/newsletters/open-source-is-community.mdx | Frontmatter quote normalization + emphasis marker normalization. |
| src/data/newsletters/nudge-theory-for-guiding-user-behavior.mdx | Frontmatter quote normalization + trailing blank line removal. |
| src/data/newsletters/next-great-engineering-skill-is-context-not-code.mdx | Frontmatter quote normalization + whitespace cleanup. |
| src/data/newsletters/mirror-effect-cognition-behavioral-science.mdx | Whitespace cleanup. |
| src/data/newsletters/lessons-i-learned-the-hard-way.mdx | Frontmatter quote normalization + trailing blank line removal. |
| src/data/newsletters/learn-to-love-the-rebuild.mdx | Whitespace cleanup. |
| src/data/newsletters/just-enough-is-an-ongoing-practice.mdx | Adjusts spacing/indentation inside MDX <Aside>. |
| src/data/newsletters/habits-of-high-longevity-people.mdx | Frontmatter quote normalization (including array quotes) + whitespace cleanup. |
| src/data/newsletters/dieter-rams-10-principles-of-design.mdx | Adds spacing + wraps long HTML span/link block. |
| src/data/newsletters/developer-product-engineer-tech-stack-2026.mdx | Removes extra blank line. |
| src/data/newsletters/beyond-click-counts-good-signals-for-design-success.mdx | Frontmatter quote normalization. |
| src/data/newsletters/ai-and-human-centered-design.mdx | Whitespace cleanup + minor text spacing. |
| src/data/content-types.ts | Removes extra blank line. |
| src/components/UnifiedContentFeed/UnifiedContentFeed.tsx | Import ordering + JSX/time tag wrapping. |
| src/components/ui/tooltip.tsx | Quote/semicolon normalization + className formatting. |
| src/components/ui/label.tsx | Tailwind class ordering. |
| src/components/ui/input.tsx | Tailwind class ordering. |
| src/components/ui/dialog.tsx | Quote/semicolon normalization + formatting. |
| src/components/ui/card.tsx | Tailwind class ordering. |
| src/components/ui/breadcrumb.tsx | Tailwind class ordering. |
| src/components/tagsSummary.tsx | Tailwind class ordering. |
| src/components/tag.tsx | Import ordering + spacing. |
| src/components/Subtitle/Subtitle.tsx | Tailwind class ordering. |
| src/components/SubscriptionForm/SubscriptionForm.tsx | Import ordering + wraps long regex/strings. |
| src/components/SubscriptionForm/SubscriptionForm.test.tsx | Import ordering + string literal formatting. |
| src/components/SponsoredSection/SponsoredSection.tsx | Removes extra blank line. |
| src/components/SponsorCTA/SponsorCTA.tsx | Import ordering + spacing. |
| src/components/SocialLinks/SocialLinks.tsx | Import ordering + wraps long callbacks. |
| src/components/Slider/Slider.tsx | Tailwind class ordering. |
| src/components/Series/SeriesNavigation.tsx | Import ordering + wraps mapping/callbacks. |
| src/components/seo.test.tsx | Condenses mock component formatting. |
| src/components/Search/SearchPage.test.tsx | Import ordering + wraps mock return. |
| src/components/Search/SearchModal.tsx | Import consolidation + JSX prop wrapping. |
| src/components/Search/SearchModal.test.tsx | Import ordering + wraps helper/calls. |
| src/components/Search/SearchContext.tsx | Quote normalization + condenses provider signature. |
| src/components/Search/SearchContext.test.tsx | Import ordering + whitespace. |
| src/components/RelatedPosts/RelatedPosts.tsx | Import ordering + JSX prop wrapping. |
| src/components/RelatedContent/RelatedContentLinksByTag.tsx | Removes extra blank line + Tailwind class ordering. |
| src/components/PullQuote/PullQuote.tsx | Tailwind class ordering. |
| src/components/Post/TableOfContents.tsx | Import ordering. |
| src/components/Post/PostSummary.tsx | Import ordering. |
| src/components/Post/FullPost.tsx | Import ordering + JSX wrapping. |
| src/components/PodcastSidebar/PodcastSidebar.tsx | Tailwind class ordering. |
| src/components/Pagination.tsx | Tailwind class ordering. |
| src/components/NewsletterSignup/NewsletterModal.tsx | Import ordering + JSX wrapping + minor log formatting. |
| src/components/NewsletterSignup/NewsletterBannerFancy.tsx | Tailwind class ordering. |
| src/components/NewsletterFeed/NewsletterItem.tsx | Removes extra blank line + Tailwind class ordering. |
| src/components/Navbar/Navbar.tsx | Import ordering + JSX wrapping + Tailwind class ordering. |
| src/components/Link/Link.tsx | Import ordering (type vs value). |
| src/components/Layouts/DefaultLayout.tsx | Tailwind class ordering. |
| src/components/HomeHero/HomeHero.tsx | Import ordering. |
| src/components/footer.tsx | Removes extra blank line. |
| src/components/ErrorPage.tsx | Wraps long call + JSX prop wrapping. |
| src/components/demos/TextPrettyDemo.tsx | JSX wrapping + inline style object formatting. |
| src/components/demos/CenteredTextDemo.tsx | Removes trailing whitespace/newline. |
| src/components/Button.tsx | Tailwind class ordering. |
| src/components/Breadcrumbs/Breadcrumbs.tsx | Type import formatting + import ordering. |
| src/app/subscribe/page.tsx | Import ordering + Tailwind class ordering. |
| src/app/subscribe/page.test.tsx | Quote normalization + whitespace cleanup. |
| src/app/subscribe/layout.tsx | Wraps long description string. |
| src/app/posthog-provider.tsx | Moves import to top + whitespace cleanup. |
| scripts/sync-newsletter-to-resend.ts | Wraps long .replace(...) calls and string concatenations. |
| scripts/sync-atproto.ts | Whitespace cleanup + wraps long calls/conditions. |
| scripts/prebuild.ts | Wraps long error construction. |
| scripts/generate-top-tags.ts | Whitespace cleanup + wraps long log line. |
| scripts/generate-related-posts.ts | Whitespace cleanup + wraps types/logs. |
| next-env.d.ts | Quote normalization. |
| knip.config.ts | Removes extra blank line in config arrays. |
| eslint.config.ts | Import ordering. |
| e2e/pagination.spec.ts | Condenses function params formatting. |
| e2e/newsletter-signup.spec.ts | Whitespace cleanup + wraps long assertion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| My first product launch was a disaster. I had spent the better part of a year building smpl with my two cofounders; our MVP worked great, we were using it to manage our own business, and on launch day... crickets. | ||
|
|
||
| Thousands of lines of code, months of effort, and a beautiful marketing site. We had decided to keep smpl a secret _until it [was] ✌🏾ready✌🏾. | ||
| Thousands of lines of code, months of effort, and a beautiful marketing site. We had decided to keep smpl a secret \_until it [was] ✌🏾ready✌🏾. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.