Code quality
PHP
- Laravel Pint — Formatting and style. Run
vendor/bin/pint --format agentto fix; CI runsvendor/bin/pint --test --format agent. - Larastan (PHPStan) — Static analysis. Run
vendor/bin/phpstan analyse. Configuration inphpstan.neonorphpstan.php.
Frontend
- ESLint — Linting. Run
npm run lint(fixes where applicable). - Prettier — Formatting (with Tailwind and organize-imports plugins). Run
npm run formatto fix,npm run format:checkto check. - TypeScript — Run
npm run types(tsc –noEmit).
Pre-commit (Husky + lint-staged)
- Husky — Git hooks. On commit, lint-staged runs:
*.{ts,tsx,js,jsx}: eslint and prettier.*.{json,md,css}: prettier.*.php: Pint and PHPStan.
Commits
- Commitlint — Enforces Conventional Commits so semantic-release can generate changelogs and versions (e.g.
feat:,fix:,docs:,chore:;BREAKING CHANGE:for major).