Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svelteAllowShorthand: false not working on conditional classes #328

Closed
Indeedornot opened this issue Nov 19, 2022 · 0 comments · Fixed by #332
Closed

svelteAllowShorthand: false not working on conditional classes #328

Indeedornot opened this issue Nov 19, 2022 · 0 comments · Fixed by #332
Labels
bug Something isn't working

Comments

@Indeedornot
Copy link

Indeedornot commented Nov 19, 2022

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

@dummdidumm dummdidumm added the bug Something isn't working label Nov 19, 2022
dummdidumm added a commit to dummdidumm/prettier-plugin-svelte that referenced this issue Dec 9, 2022
when formatting style/class directives
fies sveltejs#328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants