Skip to content

Code style & linting

Code should follow Spatie's style guides:

These guidelines are not reproduced here – read them at the source. When the guide is silent, follow the conventions already established in the project.

Linting

For applicable projects, these linters are enforced in CI and must pass before merging. Run them locally before pushing:

ToolWhat it checksCommand
PHPStanPHP static analysis (level 8, 6 for legacy projects)composer analyse
PintPHP code style, Blade templatescomposer format
PrettierCSS, JS, TS, Vueyarn format