docs: add lint:fix requirement to coding guidelines

- Add rule to always run pnpm run lint:fix after code changes
- Format components/object/list.vue to comply with Prettier
This commit is contained in:
overtrue
2025-11-20 20:04:19 +08:00
parent 74cfe21316
commit 88cf033e65
2 changed files with 48 additions and 24 deletions
+1
View File
@@ -19,6 +19,7 @@
## 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 `<script setup>` with TypeScript; prefer composables for shared logic.
- Component files use **kebab-case** (e.g. `bucket-selector.vue`), but reference them using **StudlyCase** in templates (e.g. `<BucketSelector />`).
- Override shadcn primitives **outside** `components/ui/`; never edit files in that directory directly.