mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
feat(rules): add vue and nuxt rule sets (#2250)
* feat(rules): add vue and nuxt rule sets Add rules/vue/ and rules/nuxt/, each with the standard 5-file layout (coding-style, hooks, patterns, security, testing) that extends common/, following the Adding a New Language convention in rules/README.md. Vue rules reference the frontend-patterns and vite-patterns skills. Nuxt rules reference the nuxt4-patterns and vite-patterns skills. Content is concise (1.5 to 4 KB per file) since rules load as always-on context. * fix(rules): address PR review on vue and nuxt rule sets - nuxt/coding-style: generalize the srcDir-override note (drop project-specific 'this repo' phrasing so it is correct for any Nuxt project). - vue/hooks: add **/*.ts and **/*.tsx to paths so the lint/typecheck guidance loads when editing composables and stores. - nuxt/hooks: add **/*.vue to paths (covers pages/layouts/components) and wrap nuxi typecheck in a timeout, mirroring web/hooks.md. - nuxt/security: tighten the /security-review auto-trigger scope to external fetch, credential handling, and sensitive mutations, with examples. - nuxt/testing: correct 'Vitest-only' to note built-in Playwright E2E, and drop the @nuxt/test-utils version pin. - README: register vue and nuxt in the structure tree and install examples. Skipped: 'X specific' -> 'X-specific' hyphenation (all existing rule sets use the unhyphenated form, changing only vue/nuxt would be inconsistent); repeating the 80%/TDD mandate in nuxt/testing (already inherited from common/testing.md).
This commit is contained in:
parent
3a08b0c7a8
commit
5108b20954
11 changed files with 497 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ rules/
|
|||
│ └── security.md
|
||||
├── typescript/ # TypeScript/JavaScript specific
|
||||
├── angular/ # Angular specific
|
||||
├── vue/ # Vue 3 specific
|
||||
├── nuxt/ # Nuxt 4 specific
|
||||
├── python/ # Python specific
|
||||
├── golang/ # Go specific
|
||||
├── web/ # Web and frontend specific
|
||||
|
|
@ -36,6 +38,8 @@ rules/
|
|||
# Install common + one or more language-specific rule sets
|
||||
./install.sh typescript
|
||||
./install.sh angular
|
||||
./install.sh vue
|
||||
./install.sh nuxt
|
||||
./install.sh python
|
||||
./install.sh golang
|
||||
./install.sh web
|
||||
|
|
@ -70,6 +74,8 @@ cp -r rules/common ~/.claude/rules/ecc/
|
|||
# Install language-specific rules based on your project's tech stack
|
||||
cp -r rules/typescript ~/.claude/rules/ecc/
|
||||
cp -r rules/angular ~/.claude/rules/ecc/
|
||||
cp -r rules/vue ~/.claude/rules/ecc/
|
||||
cp -r rules/nuxt ~/.claude/rules/ecc/
|
||||
cp -r rules/python ~/.claude/rules/ecc/
|
||||
cp -r rules/golang ~/.claude/rules/ecc/
|
||||
cp -r rules/web ~/.claude/rules/ecc/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue