Formatter
Shopware-CLI comes with a built-in formatter for PHP, JavaScript, CSS, SCSS, and Admin Twig files.
To run the formatter, you can use the following command:
Formatting an extension
Formatting an entire project
By default, the formatting is done by Shopware Coding Standard. You can configure the formatting by creating a .php-cs-fixer.dist.php
in your extension root or a .prettierrc
file for JavaScript, CSS, and SCSS files.