--- name: javascript-conventions description: >- JS/TS tooling conventions. Enforce pnpm. Use when working on JS/TS files or package.json. NOT for Python, backend-only, or shell scripts. user-invocable: false disable-model-invocation: false license: MIT metadata: author: wyattowalsh version: "1.0.0" --- # JavaScript/Node.js Conventions Apply these conventions when working on JavaScript or Node.js files or projects. ## Dispatch | $ARGUMENTS | Action | |------------|--------| | Active (auto-invoked when working on JS/TS files) | Apply all conventions below | | Empty | Display convention summary | | `check` | Verify package manager compliance only | ## References | File | Purpose | |------|---------| | `references/edge-cases.md` | Repo-specific exceptions and edge cases | | `references/typescript-patterns.md` | Discriminated unions, type guards, utility types | ## Package Management - Use `pnpm` for all Node.js package management - Do not use `npm` or `yarn` unless the project explicitly requires them - Commands: `pnpm install`, `pnpm add `, `pnpm run