Skip to content

Allow multiple lines after opening an element (multiline-html-element-content-newline) #683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jones-S opened this issue Nov 26, 2018 · 1 comment

Comments

@Jones-S
Copy link

Jones-S commented Nov 26, 2018

Hi there.
This is neither a rule proposal nor a bug. I would just like to know if there is a possibility to tailor the rule multiline-html-element-content-newline to my needs.

I really like to insert empty lines in longer markup files to group some of the code for better readability. Now my eslint warns me that it found 2 lines instead of 1.
I think the rule itself is useful, but I would like it to not warn me if there are more than 1 lines found.

'Expected 1 line break after opening tag (`<div>`), but 2 line breaks found.',

Thanks for your input on this issue.
Cheers

J

@korya
Copy link

korya commented Nov 28, 2018

I've just come here to open an issue for the same request.

But I would like to propose to limit it to: 1 ≤ #line-breaks ≤ 2. In my experience a single empty is a good way to visually group related lines, but multiple empty lines (≥2) create a mess.

ota-meshi added a commit that referenced this issue Jan 8, 2019
@ota-meshi ota-meshi self-assigned this Jan 8, 2019
michalsnik pushed a commit that referenced this issue Jan 26, 2019
…content-newline` rule (#759)

* Update: Add `arrowEmptyLine` option to `vue/multiline-html-element-content-newline` rule

Close #683

* remove extra comma

* fixed typo

* fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants