Skip to content

Lullabot/twig-cs-fixer-drupal

 
 

Repository files navigation

Twig CS Fixer Drupal

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.

About

Drupal specific config for Twig CS Fixer

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 95.2%
  • Twig 4.8%