sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
745 stars 97 forks source link

svelteAllowShorthand: false not working on conditional classes #328

Closed Indeedornot closed 1 year ago

Indeedornot commented 2 years ago

Continuation of issue Updated the reproduction with version 2.8.1

Sample code

<h1 class:test={test}/>

Expected output with svelteAllowShorthand: false

<h1 class:test={test}/>

Real output:

<h1 class:test/>

Reproduction made using starting svelte-kit project

look at src/routes/+page.svelte and run npm run format