npm run dev
- Start development servernpm run build
- Run checks and build for productionnpm run preview
- Preview production buildnpm run lint
- Run Prettier and ESLint to fix filesnpm run format
- Format files with Prettier (JS, TS, Astro)npm run format:all
- Format all files, including HTML and CSSnpm run check
- Run Astro type checking
- Single quotes for strings
- Printwidth: 1200 characters
- Use TypeScript with strict type checking
- Follow the path aliases defined in tsconfig.json (@components/, @utils, etc.)
- Astro components use .astro extension
- React components (.tsx) for interactive UI elements
- Use Tailwind CSS for styling
- Follow ESLint recommendations for JS/TS
- When testing, run
npm run check
before committing changes
src/components/
- Reusable UI componentssrc/content/
- Blog posts and page contentsrc/layouts/
- Page layout templatessrc/pages/
- Astro page componentssrc/utils/
- Utility functions and helpers