Lint
Run after editing files. Fix all issues before finishing.
Commands
# PHP — auto-fix coding standards
composer format
# PHP — verify clean
composer lint
# PHP — static analysis (PHPStan level 6)
composer analyze
# JS — lint with auto-fix
npm run lint:js:fix
# CSS — lint with auto-fix
npm run lint:css:fix
# All JS/CSS linters
npm run lint
Workflow
- Run PHP format first (
composer format) - Run PHP lint to verify (
composer lint) - Run PHPStan (
composer analyze) - Run JS/CSS lint if frontend files changed (
npm run lint) - If any check fails, fix errors and re-run — don't push until clean.
If only PHP files changed, skip JS/CSS checks. If only JS/CSS files changed, skip PHP checks.