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

vue/singleline-html-element-content-newline - option to enforce on size

Open acidjazz opened this issue 4 years ago • 1 comments

Dealing with vue/singleline-html-element-content-newline

It would be cool if we could enforce this based on the character count of the element, for short ones they look clean on a single line, but this rule would be great for longer ones.

Either a character count in general, or attribute count, etc.

acidjazz avatar Jun 17 '21 20:06 acidjazz

Ex: <p>text ...<nuxt-link to="/path">path</nuxt-link>text...</p>

Newline rule adds space in the end of link.

Each time I have to change the display property to..

display: inline-block

How better to stick to the rule and not insert an extra space?

Adrear avatar Jul 08 '21 08:07 Adrear