// Guidelines for web development projects using JavaScript/TypeScript frameworks. Activate when working with web projects, package.json, npm/yarn/pnpm, React, Next.js, Vue, Angular, Svelte, or other web frameworks, frontend components, or Node.js applications.
| name | web-projects |
| description | Guidelines for web development projects using JavaScript/TypeScript frameworks. Activate when working with web projects, package.json, npm/yarn/pnpm, React, Next.js, Vue, Angular, Svelte, or other web frameworks, frontend components, or Node.js applications. |
Auto-activate when: Working with package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, tsconfig.json, .eslintrc*, vite.config.*, next.config.*, *.jsx, *.tsx, *.vue, *.svelte, or when user mentions React, Next.js, Vue, Angular, Svelte, npm, yarn, pnpm, or frontend development.
Guidelines for modern JavaScript/TypeScript web projects.
package.json for dependencies and scriptspackage-lock.json, yarn.lock, pnpm-lock.yamlLook for framework-specific configuration files:
next.config.js, next.config.tsvite.config.js, vite.config.tspackage.json dependenciesvue.config.js, vite.config.ts with Vue pluginangular.jsonsvelte.config.jsRespect the project's package manager:
npm install, npm run, npm testyarn install, yarn, yarn testpnpm install, pnpm run, pnpm testDetection: Lock file or config (.npmrc, .yarnrc, pnpm-workspace.yaml)
Check package.json "scripts" section for:
dev or start - Development serverbuild - Production buildtest - Run testslint - Lintingformat - Code formattingpackage.json or dedicated files.test.js, .spec.ts, etc.)Identify and follow the project's styling method:
.module.css)tailwind.config.js).scss files)tsconfig.json - TypeScript configuration.eslintrc - Linting rules.prettierrc - Code formattingjest.config.js or vitest.config.ts - Test configuration.env.local, .env.development - Environment variablesCommon mistakes to avoid:
Note: Web projects vary greatly - always check the project's specific configuration and patterns before making assumptions.