Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.26 KB

no-multi-spaces-in-html-tag.md

File metadata and controls

35 lines (27 loc) · 1.26 KB
pageClass sidebarDepth title description
rule-details
0
lodash-template/no-multi-spaces-in-html-tag
disallow multiple spaces in HTML tags. (ex. 🆖 `<input···type="text">`)

lodash-template/no-multi-spaces-in-html-tag

disallow multiple spaces in HTML tags. (ex. 🆖 <input···type="text">)

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

Rule Details

This rule aims to disallow multiple whitespace in a between attributes which are not used for indentation.

<% /* eslint "lodash-template/no-multi-spaces-in-html-tag": "error" */ %>
<!-- ✓ GOOD -->
<input
  class="foo"
  type="text"
>

<input class="foo" type="text">

<!-- ✗ BAD -->
<input     class="foo"
      type="text"         >

Implementation