eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

How to remove empty line in html attributes

Open liasica opened this issue 1 year ago • 1 comments

I wan't remove the empty line between <BTable and :columns="columns", what can I do?

Thanks :)

<!-- Good -->
<BTable
  :columns="columns"
  :data="data"
  :scroll="scroll"
  :expandable="expandable"
/>

<!-- Bad -->
<BTable

  :columns="columns"
  :data="data"
  :scroll="scroll"
  :expandable="expandable"
/>

liasica avatar Oct 07 '24 10:10 liasica

I don't think this is possible with eslint-plugin-vue yet. You can use Prettier or another code formatter.

For eslint-plugin-vue, which rule would you like to change? (see the list of all rules here: https://eslint.vuejs.org/rules/) Or do you want to propose a new rule?

FloEdelmann avatar Oct 07 '24 10:10 FloEdelmann