blade-formatter icon indicating copy to clipboard operation
blade-formatter copied to clipboard

feat: allow pass in component prefix

Open RayGuo-ergou opened this issue 4 months ago • 3 comments

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.

Screenshots (if appropriate):

RayGuo-ergou avatar Oct 10 '24 04:10 RayGuo-ergou