Tooling and quality
Every dev dependency in the root package.json, grouped by job. What runs on a pull request, and in what order, is in Quality gates.
Language
| Package | What it does here |
|---|---|
typescript | Strict mode, es2022 target, the @/ path alias. pnpm type-check runs tsc --noEmit |
@types/node, @types/react, @types/react-dom | Type definitions. @types/node follows the Node major in .nvmrc |
Linting
| Package | What it does here |
|---|---|
eslint, @eslint/js, @eslint/eslintrc | ESLint 9 with a flat config in eslint.config.mjs. pnpm lint covers src/** only |
eslint-config-next | The core-web-vitals and typescript presets. The React Compiler rules it ships are set to warn for the motion code |
@typescript-eslint/eslint-plugin, @typescript-eslint/parser | TypeScript-aware linting |
eslint-plugin-storybook | Story file rules |
eslint-config-prettier, eslint-plugin-prettier | Keep ESLint and Prettier from disagreeing, and report formatting through ESLint |
Formatting
| Package | What it does here |
|---|---|
prettier | 120-column lines, double quotes, ES5 trailing commas. pnpm format:check covers the whole repository |
@ianvs/prettier-plugin-sort-imports | Import order: built-ins, third party, @/ aliases, relative paths, then types |
prettier-plugin-sort-json | Sorted keys in JSON files |
Git hooks and commits
| Package | What it does here |
|---|---|
husky | Installed by postinstall. Hooks: commit-msg, pre-commit and post-merge, which re-runs pnpm install when the lockfile changed |
lint-staged | Lints and formats staged files. Off unless HUSKY_ENABLED=true is in .husky/_/pre-commit.options |
@commitlint/cli, @commitlint/config-conventional | Conventional Commits, checked on every commit and again in CI. The type drives the release notes; see Release process |
Tests
| Package | What it does here |
|---|---|
vitest | Two projects in vitest.config.ts: unit (Node) for src/**/*.test.* and scripts/**/*.test.mjs, and storybook |
@vitest/browser-playwright | Runs the storybook project in headless Chromium, so every story is a test |
playwright | The browser behind the story tests, and behind the probes in scripts/probes/ |
vite, vite-tsconfig-paths | The bundler Vitest and Storybook run on, and the @/ alias resolution for them |
Storybook
| Package | What it does here |
|---|---|
storybook, @storybook/nextjs-vite | The component workshop, deployed at storybook.antmejia.com |
@storybook/addon-vitest | Turns each story into a Vitest test |
@storybook/addon-a11y | Adds axe checks to the stories. .storybook/preview.ts sets test: "error", so a violation fails pnpm test |
@storybook/addon-docs | MDX documentation pages next to the stories |
Authoring rules are in Storybook authoring guide.
Build plugins
| Package | What it does here |
|---|---|
@vanilla-extract/next-plugin | Compiles *.css.ts in the Next build |
@vanilla-extract/vite-plugin | The same for Storybook and Vitest, with the same class-name scheme |
@posthog/nextjs-config | Uploads source maps at build time for error tracking, when its credentials are present |
webpack | A peer dependency of the PostHog webpack plugin. Nothing imports it directly |
Assets and email preview
| Package | What it does here |
|---|---|
sharp | Image processing in scripts/assets/ for the favicon set. See Favicons |
react-email, @react-email/ui | pnpm email:dev serves a live preview of the email templates on port 3030 |
Scripts and checks
| Package | What it does here |
|---|---|
@axe-core/playwright | The axe engine behind pnpm probe:a11y, which checks every built route in both themes |
pixelmatch, pngjs | The image diff in scripts/visual-qa/ |
ajv, ajv-draft-04, ajv-formats | Validate the /resume.json export against the vendored JSON Resume schema in a unit test |
vite-node | Runs the pnpm assistant:knowledge CLI with the @/ aliases and image imports the content modules need |
@types/luxon | Types for luxon |
Package manager settings
pnpm.onlyBuiltDependencies allows install scripts for @posthog/cli, esbuild, sharp and unrs-resolver only. Any other package that wants to run a script on install is blocked until it is added there.
Why some of these look unused
eslint-config-next, webpack, @react-email/ui, sharp and playwright have no direct import in src/, and a dependency scan reports them as unused. Each is required by something else, and Dependency audit records which.
Last updated on