Skip to content

Formatter

You are viewing an outdated version of the documentation.
Click here to switch to the stable version (v6.7), or use the version switcher on the left to navigate between versions.

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.

Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)