wotnak / twig-cs-fixer-drupal
Drupal specific rules for Twig CS Fixer.
2.0.0
2024-08-25 13:10 UTC
Requires
- php: >=8.3
- drupal/core: >=10
- vincentlanglet/twig-cs-fixer: ^3.0.2
README
Drupal specific config for Twig CS Fixer.
Installation
-
composer req --dev wotnak/twig-cs-fixer-drupal -
In your Twig CS Fixer configuration file enable predefined Drupal specific config:
<?php // Load Drupal TwigCsFixer configuration. return \TwigCsFixerDrupal\DrupalConfig::getConfig();
Custom rules
| Rule | Fixable | Description |
|---|---|---|
| RequireComponentAttributesRule | no | Ensures that main html tag of a component has attributes set using attributes prop. |