Skip to content

Coding Standards

Lumbermill enforces consistent code style across all languages. Most rules are automated — run the linters below before pushing and fix any violations before code review.

ToolLanguageConfigRun
PHP Code SnifferPHPphpcs.xmlddev composer test
PHPStanPHPphpstan.neonddev composer run-script phpstan
ESLintJavaScripteslint.config.jsddev npm run lint:js
StylelintSCSS.stylelintrcddev npm run lint:scss
PrettierTwig.prettierrcddev npm run prettier

Run all linters at once:

Terminal window
ddev npm run lint && ddev npm run prettier && ddev composer test