blade-formatter
blade-formatter copied to clipboard
feat: allow pass in component prefix
Description
Add a new option componentPrefix
for html attr format.
Related Issue
closes #942 closes #944
Motivation and Context
Due to currently only prefix of x-
or livewire:
treat as custom component and format html attr differently, thus for new libs like flux
which uses prefix of flux:
. The result of the format will cause a syntex error. e.g. :key="$foo - > bar"
How Has This Been Tested?
Both cli and formatter test cases added.