lullabot / twig-cs-fixer-drupal
Drupal specific rules for Twig CS Fixer.
v2.3.0
2026-03-13 18:36 UTC
Requires
- php: >=8.2
- drupal/core: >=10
- vincentlanglet/twig-cs-fixer: ^3.0.2
- webflo/drupal-finder: ^1.3
Requires (Dev)
- phpunit/phpunit: ^9.6 || ^11.0 || ^12.0
This package is auto-updated.
Last update: 2026-03-13 18:37:35 UTC
README
Drupal specific config for Twig CS Fixer.
Installation
-
composer req --dev lullabot/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. |