question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue Formatting Question

See original GitHub issue

Prettier 1.15.1 Playground link

--parser vue

Input:

  <div class="container">
    <HomeH />
    <HomeA />
    <HomeX />
    <HomeY />
  </div>

Output:

<div class="container"><HomeH /> <HomeA /> <HomeX /> <HomeY /></div>

Expected behavior: I am not sure if this was intended, but I was expecting the formatting to keep the original input rather than putting them all in a single line.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aaaguirrepcommented, Nov 8, 2018

I had the same issue with the last version. I uninstalled and installed the 1.14.3 version.

0reactions
aaaguirrepcommented, Nov 11, 2018

Done, #5441.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode prettier/vue formatting settings don't work properly
I've been struggling with a similar problem with VSCode's formatting. I also have Prettier, ESLint and Vetur extensions installed.
Read more >
sudheerj/vuejs-interview-questions: List of 300 ... - GitHub
created: This hook is invoked when Vue has set up events and data observation. Here, events are active and access to reactive data...
Read more >
Vue.js Interview Questions in 2022
12) What is VUE-resource, how can you install Vue Resource ? 13) How to create Constants in Vue js. 14) What is virtual...
Read more >
Style Guide - Vue.js
Style Guide. This is the official style guide for Vue-specific code. If you use Vue in a project, it's a great reference to...
Read more >
How To Configure ESLint and Prettier for Vue.js - DigitalOcean
Learn how to add default Prettier linting to your Vue.js projects. ... Its goal is to automate the work of formatting code to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found