skills/paulirish/dotfiles/pauls-project-setup

pauls-project-setup

Installation
SKILL.md

Paul's Project Setup

When setting up a new project or initializing a repository, use this modern stack and these specific configuration conventions.

Core Stack Strategy

We use this specific stack to maximize execution speed, minimize configuration overhead, and avoid slow build steps during development.

  • Package Manager: pnpm (for strict dependency resolution and speed)
  • Type Checking: buildless-types standard (JSDoc or Erasable Syntax with tsc --noEmit to get type safety without the overhead of a build step)
  • Linting: oxlint (for blazingly fast linting without complex plugin ecosystems)
  • Formatting: oxfmt (for zero-config, blazingly fast formatting)
  • Testing: Node.js native test runner (node --test) or vitest. We avoid Jest entirely because it is notoriously slow and requires complex transpilation pipelines.
  • Bundler / Dev Server: esbuild (for fast Node.js tooling compilation) or vite (for modern frontend apps)

Configuration Standards

Apply these baseline settings to enable the preferred workflow.

1. package.json Scripts & Settings

Ensure the project is an ES Module and defines standard scripts inspired by Paul's existing projects:

{
  "type": "module",
  "engines": {
    "node": ">=24.11.0"
  },
  "scripts": {
    "test": "pnpm run typecheck && pnpm run test:node",
    "test:node": "node --test test/**/*.test.js",
    "typecheck": "tsc --noEmit",
    "lint": "oxlint --ignore-path .oxlintignore",
    "format": "oxfmt --write '**/*.{ts,js,css,html,json}'",
    "preflight": "pnpm typecheck && pnpm lint && pnpm test"
  }
}

2. Type Safety (buildless-types)

  • Use modern Node.js features to run .ts files directly using erasable syntax, or use complete JSDoc annotations in .js files.
  • The tsconfig.json should align with the buildless-types skill constraints (e.g., erasableSyntaxOnly: true, verbatimModuleSyntax: true, allowImportingTsExtensions: true).
  • Execute files directly with node script.ts. Do not use tools like npx tsx or ts-node.

3. Linting and Formatting

  • Install oxlint and oxfmt as devDependencies (pnpm add -D oxlint oxfmt).
  • Use oxlint for blazingly fast linting. Create an .oxlintignore file if necessary.
  • Use oxfmt for formatting across the project (.ts, .js, .css, .html, .json).

4. Testing

  • Prefer the built-in Node.js test runner (node --test) for unit and integration testing. It requires zero configuration and runs extremely fast.
  • If a richer ecosystem or browser-like testing environment is required, use vitest.
  • Avoid jest completely due to its performance overhead and configuration complexity.

5. Bundling

  • Use esbuild for fast Node.js CLI tooling compilation or generic JS bundling.
  • Use vite for modern web application frontend development and building.
Weekly Installs
6
GitHub Stars
4.3K
First Seen
Mar 15, 2026
Installed on
antigravity6
github-copilot6
codex6
kimi-cli6
amp6
cline6