wotnak/twig-cs-fixer-drupal

Drupal specific rules for Twig CS Fixer.

Installs: 9 754

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

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

2.0.0 2024-08-25 13:10 UTC

This package is auto-updated.

Last update: 2025-09-25 16:21:53 UTC


README

Drupal specific config for Twig CS Fixer.

Installation

  • Install Twig CS Fixer

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