Vetur: Avoid multi line attributes inside <template>

Created on 4 Apr 2017  路  12Comments  路  Source: vuejs/vetur

Hello!
First of all, awesome job, I really love this project. I would like to know if it is possible to avoid multi line attributes inside <template> tags in a .vue file. I would like to preserve the following format:

<template>
  <div id="app" class="wrapper" v-model="{{ something }}">
    <topband></topband>
  </div>
</template>

But when I format the file the template change to:

<template>
  <div id="app" 
       class="wrapper"
       v-model="{{ something }}">
    <topband></topband>
  </div>
</template>

It is possible to avoid that?

formatting

Most helpful comment

Let's keep it open -- I want to verify the update would solve this problem.

All 12 comments

Working on a formatter setting right now...

Awesome @octref, any help that I can provide just let me know.

Let's keep it open -- I want to verify the update would solve this problem.

nice! can't wait to have this setting!

This is resolved in master. Will be publishing 0.6 with release notes soon.

@octref I didn't get it.. What are the option to turn off