You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into a problem with formatting blade directives (space after), when using config "useLaravelPint": true,. If I run prettier on a single file it works, but if I run it for an entire folder it doesn't.
Hi,
I'm running into a problem with formatting blade directives (space after), when using config
"useLaravelPint": true,
. If I run prettier on a single file it works, but if I run it for an entire folder it doesn't.My .prettierrc config
My .blade.format.json config
My pint.json config
I have a test.blade.php file that looks like this:
I want to keep the space after my blade directives.
Now when I run prettier on only the file:
npx prettier resources/views/compontents/input/test.blade.php
the space is there.When I run prettier on the folder:
npx prettier resources/views/components/input --write
the space is removed.When I set
"useLaravelPint": false,
the space is there when running prettier on either the file or the folder.So the problem seems to be Laravel Pint removing the space, but only when running prettier on multiple files at once.
The text was updated successfully, but these errors were encountered: