Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude include fixer from twigcsfixer #758

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mark-casias
Copy link

Removes the Include function from the TwigCSFixer which causes issues in Storybook.

Comment on lines +35 to +36
// Remove the IncludeFunctionRule which breaks TwigJS.
$ruleset->removeRule(TwigCsFixer\Rules\Function\IncludeFunctionRule::class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to do this by committing .twig-cs-fixer.php to your local repo? Then you could control this and anything else (since this twigjs isn't commonly used).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. This would be a good thing to just document over changing drainpipe... that is, assuming drainpipe doesn't overwrite files that are present, or the scaffolding can be controlled in composer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants