Skip to Content
StackTooling and quality

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

PackageWhat it does here
typescriptStrict mode, es2022 target, the @/ path alias. pnpm type-check runs tsc --noEmit
@types/node, @types/react, @types/react-domType definitions. @types/node follows the Node major in .nvmrc

Linting

PackageWhat it does here
eslint, @eslint/js, @eslint/eslintrcESLint 9 with a flat config in eslint.config.mjs. pnpm lint covers src/** only
eslint-config-nextThe 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/parserTypeScript-aware linting
eslint-plugin-storybookStory file rules
eslint-config-prettier, eslint-plugin-prettierKeep ESLint and Prettier from disagreeing, and report formatting through ESLint

Formatting

PackageWhat it does here
prettier120-column lines, double quotes, ES5 trailing commas. pnpm format:check covers the whole repository
@ianvs/prettier-plugin-sort-importsImport order: built-ins, third party, @/ aliases, relative paths, then types
prettier-plugin-sort-jsonSorted keys in JSON files

Git hooks and commits

PackageWhat it does here
huskyInstalled by postinstall. Hooks: commit-msg, pre-commit and post-merge, which re-runs pnpm install when the lockfile changed
lint-stagedLints and formats staged files. Off unless HUSKY_ENABLED=true is in .husky/_/pre-commit.options
@commitlint/cli, @commitlint/config-conventionalConventional Commits, checked on every commit and again in CI. The type drives the release notes; see Release process

Tests

PackageWhat it does here
vitestTwo projects in vitest.config.ts: unit (Node) for src/**/*.test.* and scripts/**/*.test.mjs, and storybook
@vitest/browser-playwrightRuns the storybook project in headless Chromium, so every story is a test
playwrightThe browser behind the story tests, and behind the probes in scripts/probes/
vite, vite-tsconfig-pathsThe bundler Vitest and Storybook run on, and the @/ alias resolution for them

Storybook

PackageWhat it does here
storybook, @storybook/nextjs-viteThe component workshop, deployed at storybook.antmejia.com 
@storybook/addon-vitestTurns each story into a Vitest test
@storybook/addon-a11yAdds axe checks to the stories. .storybook/preview.ts sets test: "error", so a violation fails pnpm test
@storybook/addon-docsMDX documentation pages next to the stories

Authoring rules are in Storybook authoring guide.

Build plugins

PackageWhat it does here
@vanilla-extract/next-pluginCompiles *.css.ts in the Next build
@vanilla-extract/vite-pluginThe same for Storybook and Vitest, with the same class-name scheme
@posthog/nextjs-configUploads source maps at build time for error tracking, when its credentials are present
webpackA peer dependency of the PostHog webpack plugin. Nothing imports it directly

Assets and email preview

PackageWhat it does here
sharpImage processing in scripts/assets/ for the favicon set. See Favicons
react-email, @react-email/uipnpm email:dev serves a live preview of the email templates on port 3030

Scripts and checks

PackageWhat it does here
@axe-core/playwrightThe axe engine behind pnpm probe:a11y, which checks every built route in both themes
pixelmatch, pngjsThe image diff in scripts/visual-qa/
ajv, ajv-draft-04, ajv-formatsValidate the /resume.json export against the vendored JSON Resume schema in a unit test
vite-nodeRuns the pnpm assistant:knowledge CLI with the @/ aliases and image imports the content modules need
@types/luxonTypes 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