# lodash-template/html-comment-content-newline

require or disallow a line break before and after HTML comment contents

  • ⚙️ 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 enforces a line break (or no line break) before and after HTML comment contents.

Now loading...

# Options

{
  "lodash-template/html-comment-content-newline": ["error", {
    "singleline": "never",
    "multiline": "always",
  }]
}
  • singleline ... the configuration for single-line comments.
    • "ignore" ... Don't enforce line breaks style before and after the comments.
    • "never" ... disallow line breaks before and after the comments. This is the default.
    • "always" ... require one line break before and after the comments.
  • multiline ... the configuration for multiline comments.
    • "ignore" ... Don't enforce line breaks style before and after the comments.
    • "never" ... disallow line breaks before and after the comments.
    • "always" ... require one line break before and after the comments. This is the default.
Now loading...

# Further Reading

# Implementation