Vetur: Add option to configure initial indent for <style> and <script>

Created on 19 Apr 2017  路  8Comments  路  Source: vuejs/vetur

formatting

Most helpful comment

Published as 0.6.9.

All 8 comments

Does this issue or improvement belongs to this:

Vetur on save converts this code;

<script>
  import appHeader from './Layout/Header'
  import appFooter from './Layout/Footer'
</script>

To this

<script>
import appHeader from './Layout/Header'
import appFooter from './Layout/Footer'
</script>

@mubaidr Yes I'm planning to have it before 0.7.

@octref Awesome, i was about to create a new issue for the same! Thanks. Waiting for the update.

vetur.format.styleInitialIndent and vetur.format.scriptInitialIndent are added.

Published as 0.6.9.

Awesome!

Could we have this option for the template-tag aswell?

@heeboA No.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dealerpriest picture Dealerpriest  路  3Comments

gabrielboliveira picture gabrielboliveira  路  3Comments

muhajirdev picture muhajirdev  路  3Comments

OsterHuang picture OsterHuang  路  3Comments

yoyoys picture yoyoys  路  3Comments