diff --git a/.prettierignore b/.prettierignore index 064f93a..2b0b32c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,4 +10,5 @@ coverage .github .specify auto-imports.d.ts -components.d.ts \ No newline at end of file +components.d.ts +pnpm-lock.yaml \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index 56a6912..783f027 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -16,12 +16,39 @@ - `pnpm vue-tsc --noEmit` – perform a strict type check. - `pnpm lint` – run `vue-tsc` and Prettier (format check only). +## Mandatory Code Quality Checks + +**⚠️ CRITICAL: These checks MUST pass before every commit.** + +Before committing any code changes, you MUST run and pass: + +1. **Lockfile Sync Check**: `pnpm install --frozen-lockfile` + - Ensures `pnpm-lock.yaml` is in sync with `package.json` + - **MUST run `pnpm install` after modifying `package.json` and commit the updated `pnpm-lock.yaml`** + - CI will fail if lockfile is out of sync + +2. **TypeScript Type Check**: `pnpm vue-tsc --noEmit` + - Ensures all TypeScript types are correct + - Must have zero errors before committing + +3. **Prettier Format Check**: `pnpm prettier --check .` + - Ensures all code follows formatting standards + - If it fails, run `pnpm lint:fix` to auto-fix formatting issues + +**Automated Enforcement**: The pre-commit hook (`scripts/pre-commit-check.sh`) automatically runs these checks. If any check fails, the commit will be blocked. + +**Quick Fix Command**: If checks fail: + +1. Run `pnpm install` to sync lockfile (if package.json changed) +2. Run `pnpm lint:fix` to auto-fix formatting +3. Address any TypeScript errors manually + ## Coding Style & Naming Conventions - Use Prettier defaults (see `.prettierrc.ts`); run `pnpm lint` or `pnpm lint:fix`. - **Always run `pnpm run lint:fix` after making code changes to ensure formatting compliance before committing.** - Vue files use ` diff --git a/components/object/delete/task/item.vue b/components/object/delete/task/item.vue deleted file mode 100644 index bbf231c..0000000 --- a/components/object/delete/task/item.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - diff --git a/components/object/delete/task/list.vue b/components/object/delete/task/list.vue deleted file mode 100644 index 9ee206a..0000000 --- a/components/object/delete/task/list.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/components/object/list.vue b/components/object/list.vue index 9de2dec..36ef206 100644 --- a/components/object/list.vue +++ b/components/object/list.vue @@ -9,8 +9,11 @@