wotnak / twig-cs-fixer-drupal
Drupal specific rules for Twig CS Fixer.
Installs: 5 318
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
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. |