vuejs / eslint-plugin-vue

Official ESLint plugin for Vue.js
https://eslint.vuejs.org/
MIT License
4.47k stars 667 forks source link

How to remove empty line in html attributes #2570

Open liasica opened 1 month ago

liasica commented 1 month ago

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"
/>
FloEdelmann commented 1 month ago

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?