lullabot/twig-cs-fixer-drupal

Drupal specific rules for Twig CS Fixer.

Maintainers

Package info

github.com/Lullabot/twig-cs-fixer-drupal

pkg:composer/lullabot/twig-cs-fixer-drupal

Statistics

Installs: 1 233

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v2.3.0 2026-03-13 18:36 UTC

README

Packagist Version CI

Drupal specific config for Twig CS Fixer.

Installation

  • Install Twig CS Fixer

  • 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.