npm run dev- Start development servernpm run build- Build for productionnpm run lint- Run ESLint and Prettier checksnpm run format- Fix formatting with Prettiernpm run test- Run all testsnpm run test:unit- Run unit tests with Vitestnpm test:integration- Run integration tests with Playwrightnpx vitest src/path/to/file.test.js- Run a single test file
- Use tabs for indentation
- Use single quotes for strings
- No trailing commas
- 100 character line width
- ES modules (
import/export) - Group imports: external libraries first, then internal (
$lib/) - Async/await for asynchronous operations
- Prefer destructuring for clean parameter passing
- Use semantic naming and camelCase
- Proper error handling with try/catch blocks where appropriate
- SvelteKit with Tailwind CSS
- Firebase/Firestore for database
- ESLint/Prettier for linting and formatting
- Vitest for unit testing
- Playwright for integration testing