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
Thanks for the awesome package. In my project I am using this VSCode plug-in and I am also using the Node library. When I use the Plug-in and then switch to the Node Library, I wanted both to use the same config; however, I am running into an issue where the format of the option customHtmlAttributesOrder are inconsistent between the two.
As you can see the customHtmlAttributesOrder is a comma separated string of attributes. This config works great for the VSCode Plug-in; however, when I run the following command using the Typescript Node package:
blade-formatter 'resources/views/**/*.blade.php'
I get an error that customHtmlAttributesOrder must be an array. So, as a workaround, I created another file with the following config:
I can then pass this config to the Node CLI command and it will work fine.
The only problem now is that I have 2 files that I have to manage. If I make a change to one then I have to make a change to the other to match. Is there a work-around for this?
Really appreciate it and I look forward to hearing back from you 😊
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there 👋
Thanks for the awesome package. In my project I am using this VSCode plug-in and I am also using the Node library. When I use the Plug-in and then switch to the Node Library, I wanted both to use the same config; however, I am running into an issue where the format of the option
customHtmlAttributesOrder
are inconsistent between the two.Here is my
.bladformatterrc
config file:As you can see the
customHtmlAttributesOrder
is a comma separated string of attributes. This config works great for the VSCode Plug-in; however, when I run the following command using the Typescript Node package:I get an error that
customHtmlAttributesOrder
must be an array. So, as a workaround, I created another file with the following config:I can then pass this config to the Node CLI command and it will work fine.
The only problem now is that I have 2 files that I have to manage. If I make a change to one then I have to make a change to the other to match. Is there a work-around for this?
Really appreciate it and I look forward to hearing back from you 😊
Beta Was this translation helpful? Give feedback.
All reactions