# lodash-template/html-comment-spacing

enforce unified spacing in HTML comment. (ex. 🆗 <!-- comment -->, 🆖 <!--comment-->)

  • ⚙️ This rule is included in "plugin:lodash-template/recommended-with-html" and "plugin:lodash-template/all".
  • 🔧 The --fix option on the command line (opens new window) can automatically fix some of the problems reported by this rule.

# Rule Details

This rule aims to enforce unified spacing in HTML comment.

Now loading...

# Options

Default spacing is set to always

{
  "lodash-template/html-comment-spacing": ["error", "always" | "never"]
}

# "always" - Expect one space between comment and curly brackets.

Now loading...

# "never" - Expect no spaces between comment and curly brackets.

Now loading...

# Implementation