Skip to content

Rule proposal: html comment content newline #592

Closed
@ota-meshi

Description

@ota-meshi

Please describe what the rule should do:

Enforce newline before and after HTML comment content.

What category of rule is this? (place an "X" next to just one item)

[x] Enforces code style
[ ] Warns about a potential error
[ ] Suggests an alternate way of doing something
[ ] Other (please specify:)

Provide 2-3 code examples that this rule will warn about:

<!-- multiline
comment -->
<!--

Too many newlines

-->

Why should this rule be included in ESLint (instead of a plugin)?

I think it should be included for the beauty of the Vue source code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions