From e6103ecce3b1da4280b3127232860857deca93ae Mon Sep 17 00:00:00 2001 From: martyy-code Date: Wed, 15 Jul 2026 15:18:37 +0200 Subject: [PATCH 1/6] chore: format codebase with prettier 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds prettier@^3.9.5 as a direct devDep and reformats the project with the existing .prettierrc config (semi, singleQuote, tabWidth 2, trailingComma es5, printWidth 100). Adds temp/ to .prettierignore so reference repos and temp docs are not checked. This is the natural consequence of adding 'pnpm format:check' to the lint CI workflow — without a clean baseline the new step would fail on every PR. Co-Authored-By: Claude --- CHANGELOG.md | 2 +- CLAUDE.md | 1 + CODE_OF_CONDUCT.md | 2 +- CONTRIBUTING.md | 2 +- DESIGN.md | 82 ++-- README.md | 26 +- SECURITY.md | 2 +- apps/web/content/docs/meta.json | 2 +- apps/web/proxy.ts | 4 +- apps/web/src/app/(home)/blog/[slug]/page.tsx | 9 +- apps/web/src/app/(home)/blog/page.tsx | 14 +- apps/web/src/app/(home)/blog/rss.xml/route.ts | 3 +- apps/web/src/app/(home)/page.tsx | 80 +--- apps/web/src/app/global.css | 3 +- apps/web/src/app/layout.tsx | 12 +- apps/web/src/app/og/blog/[slug]/route.tsx | 100 +++-- apps/web/src/app/og/docs/[...slug]/route.tsx | 162 ++++--- apps/web/src/app/og/home/route.tsx | 2 +- apps/web/src/app/opengraph-image.tsx | 138 +++--- apps/web/src/app/twitter-image.tsx | 126 +++--- apps/web/src/components/code-block.tsx | 18 +- apps/web/src/components/cta-card.tsx | 6 +- apps/web/src/components/footer.tsx | 29 +- apps/web/tsconfig.json | 20 +- docs/internal/product/README.md | 150 +++---- docs/internal/product/design-philosophy.md | 16 + .../product/features/async-support.md | 45 +- .../product/features/chain-traversal.md | 14 +- docs/internal/product/features/chaining.md | 27 +- .../product/features/context-injection.md | 49 ++- .../product/features/error-function.md | 67 +-- docs/internal/product/features/inheritance.md | 22 +- docs/internal/product/features/is-function.md | 29 +- .../product/features/message-formatting.md | 34 +- docs/internal/product/features/notes.md | 27 +- .../product/features/output-formatting.md | 70 +-- .../product/features/predefined-errors.md | 43 +- .../product/features/raise-function.md | 35 +- .../product/features/stack-cleaning.md | 10 +- docs/internal/product/features/type-guards.md | 17 +- docs/internal/product/guides/migration.md | 63 ++- docs/internal/product/guides/testing.md | 23 +- .../product/ideas/testing-utilities.md | 48 +-- docs/internal/releases/README.md | 23 +- .../releases/v1.0.0-core-foundation/README.md | 25 +- .../releases/v1.1.0-enhanced-dx/README.md | 19 +- .../releases/v1.2.0-type-safety/README.md | 21 +- .../v1.3.0-production-ready/README.md | 34 +- .../v2.0.0-advanced-context/README.md | 55 +-- docs/internal/tasks/implementation/README.md | 22 +- .../implementation/task-01-error-factory.md | 6 +- .../implementation/task-02-raise-function.md | 4 +- .../implementation/task-03-is-function.md | 4 +- .../implementation/task-04-inherits-option.md | 3 +- .../implementation/task-05-from-method.md | 2 +- .../implementation/task-06-causes-function.md | 3 +- .../task-07-message-templates.md | 3 +- .../task-08-instance-properties.md | 27 +- docs/internal/tasks/testing/README.md | 22 +- .../task-09-unit-tests-error-factory.md | 2 +- .../tasks/testing/task-10-unit-tests-raise.md | 2 +- .../tasks/testing/task-11-unit-tests-is.md | 2 +- .../tasks/testing/task-12-unit-tests-from.md | 4 +- .../testing/task-13-unit-tests-causes.md | 2 +- .../testing/task-14-unit-tests-messages.md | 2 +- .../tasks/testing/task-15-type-tests.md | 20 +- .../testing/task-18-integration-tests.md | 2 +- docs/internal/tasks/v1.0.0-core-foundation.md | 46 +- packages/errors/CHANGELOG.md | 4 - packages/errors/README.md | 26 +- packages/errors/eslint.config.js | 13 +- packages/errors/examples/chaining/02-chain.ts | 4 +- packages/errors/package.json | 2 +- packages/errors/src/causes/index.ts | 6 +- packages/errors/src/error/capture.ts | 20 +- packages/errors/src/error/error.ts | 55 ++- packages/errors/src/error/format.ts | 31 +- packages/errors/src/error/types.ts | 4 +- packages/errors/src/index.ts | 6 +- packages/errors/src/is/index.ts | 49 +-- packages/errors/src/raise/index.ts | 2 +- packages/errors/tests/causes.test.ts | 152 +++---- packages/errors/tests/error.test.ts | 404 +++++++++--------- packages/errors/tests/from.test.ts | 212 ++++----- packages/errors/tests/is.test.ts | 208 ++++----- packages/errors/tests/raise.test.ts | 120 +++--- packages/errors/tsconfig.build.json | 2 +- packages/errors/tsconfig.json | 2 +- packages/errors/vitest.config.ts | 4 +- turbo.json | 2 +- vercel.json | 2 +- 91 files changed, 1650 insertions(+), 1669 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd912b6..c801f9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,4 +17,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -### Security \ No newline at end of file +### Security diff --git a/CLAUDE.md b/CLAUDE.md index 5aeaf57..1432680 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -52,6 +52,7 @@ fresh fetch https://react.dev/docs ``` Available commands: + - `fresh auth` - Authentication commands - `fresh search [options]` - Search the web using Exa.ai - `fresh fetch [options] ` - Fetch and extract content from a URL diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 2942338..9e232b3 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -107,4 +107,4 @@ enforcement ladder](https://github.com/mozilla/diversity). For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at -https://www.contributor-covenant.org/translations. \ No newline at end of file +https://www.contributor-covenant.org/translations. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fcda89f..63edfcc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,4 +64,4 @@ pnpm turbo test # Run tests across all packages ## Questions? -Open an issue or reach out to us at **support@nesalia.com**. \ No newline at end of file +Open an issue or reach out to us at **support@nesalia.com**. diff --git a/DESIGN.md b/DESIGN.md index 45a76d4..26d7d73 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -6,14 +6,14 @@ Design system and visual guidelines for the `@deessejs/errors` documentation web ## Tech Stack -| Technology | Version | Purpose | -|------------|---------|---------| -| Next.js | 16.x | React framework | -| Tailwind CSS | v4 | Styling | -| Geist | (Vercel) | Typography (future) | -| shadcn/ui | TBD | Component library | -| FumaDocs | 16.x | Documentation framework | -| lucide-react | 1.x | Icons | +| Technology | Version | Purpose | +| ------------ | -------- | ----------------------- | +| Next.js | 16.x | React framework | +| Tailwind CSS | v4 | Styling | +| Geist | (Vercel) | Typography (future) | +| shadcn/ui | TBD | Component library | +| FumaDocs | 16.x | Documentation framework | +| lucide-react | 1.x | Icons | ## Typography @@ -29,6 +29,7 @@ const geist = Geist({ ``` **Scale**: + - Headings: `font-bold tracking-tight` - Body: `text-lg` for main content, `text-base` for details - Code: JetBrains Mono (monospace) @@ -38,14 +39,14 @@ const geist = Geist({ Using Tailwind's default palette with these semantic usages: -| Token | Usage | -|-------|-------| -| `gray-950` | Primary text (`#030304`) | -| `gray-500` | Secondary text / muted | -| `gray-300` | Borders | -| `gray-200` | Dividers, subtle backgrounds | -| `white` | Cards, elevated surfaces | -| `#f8f9fb` | Off-white body background | +| Token | Usage | +| ----------------------- | -------------------------------- | +| `gray-950` | Primary text (`#030304`) | +| `gray-500` | Secondary text / muted | +| `gray-300` | Borders | +| `gray-200` | Dividers, subtle backgrounds | +| `white` | Cards, elevated surfaces | +| `#f8f9fb` | Off-white body background | | `blue-500` / `blue-600` | Accent color (links, highlights) | ### Dark Mode @@ -68,10 +69,10 @@ SVG-based grid pattern for hero sections: - + - + ``` @@ -92,13 +93,13 @@ SVG-based grid pattern for hero sections: ### Buttons **Primary** (dark): + ```html - + ``` **Secondary** (outlined): + ```html