Stillat / blade-parser-typescript

A Laravel Blade parser, compiler, and static analyzer written in TypeScript.
https://stillat.com
MIT License
82 stars 2 forks source link

`@class` on multiple lines #43

Closed zepfietje closed 1 year ago

zepfietje commented 1 year ago
@class([
    'grid auto-cols-fr grid-flow-col gap-2 text-sm',
    'ms-8' => $active,
])
@class(['grid auto-cols-fr grid-flow-col gap-2 text-sm', 'ms-8' => $active])

Personally I'd expect the input to remain unchanged, as the current formatted output gets unreadable with key-value pairs.

JohnathonKoster commented 1 year ago

Behavior improved in 1.2.1 🙂

zepfietje commented 1 year ago

Confirmed! 🚀