Appearance
Formatters
codecannon apps come with formatters configured and ready to go.
Frontend
On the frontend codecannon apps use Prettier for formatting.
You can run the formatter with the following command:
bash
npm run formatThe Prettier configuration can be found in ui/.prettierrc.json.
Additionally formatter workflows for Github Actions are generated and enabled by default.
Backend
On the backend codecannon apps use Laravel Pint for formatting.
You can run the formatter with the following commands:
bash
# Format code
composer run format
# Check formatting without making changes
composer run format-checkAlternatively, you can run Pint directly:
bash
./vendor/bin/pintAdditionally formatter workflows for Github Actions are generated and enabled by default.