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

Bug: Can not handle Vue slot shortcut syntax #289

Closed
2 of 7 tasks
backbone87 opened this issue Sep 8, 2021 · 2 comments · Fixed by #290
Closed
2 of 7 tasks

Bug: Can not handle Vue slot shortcut syntax #289

backbone87 opened this issue Sep 8, 2021 · 2 comments · Fixed by #290
Assignees
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected

Comments

@backbone87
Copy link
Contributor

Plugin Version

master

Prettier Version

^2.3

Which frameworks are affected?

  • none
  • vue
  • angular
  • svelte

Node Version

14

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Prettier config

{
  printWidth: 120,
  singleQuote: true,
  trailingComma: 'all',
  pugAttributeSeparator: 'none',
  pugFramework: 'vue',
  pugSingleFileComponentIndentation: true,
  pugSingleQuote: false,
}

Input

my-component(foo="bar", #default="{ baz }")

Output or Error

my-component(foo="bar", #default="{ baz }")

Expected Output

my-component(foo="bar" #default="{ baz }")

Additional Context

it just does not format the content at all (via VS code). removing the destructuring will make it work

@Shinigami92 Shinigami92 self-assigned this Sep 8, 2021
@Shinigami92 Shinigami92 added framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected labels Sep 8, 2021
@Shinigami92
Copy link
Member

Shinigami92 commented Sep 8, 2021

Please use v-slot:default until I can fix this.
It's a know bug

@Shinigami92
Copy link
Member

I had a home PC crash yesterday 😢
So sorry that I may not response in next few days, I will try to recover my system and set this as my prio...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants