Skip to content

wotnak/twig-cs-fixer-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twig CS Fixer Drupal

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages