Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.26 KB

element-name-casing.md

File metadata and controls

35 lines (26 loc) · 1.26 KB
pageClass sidebarDepth title description
rule-details
0
lodash-template/element-name-casing
enforce HTML element name casing. (ex. 🆗 `<xxx-element>` 🆖 `<xxxElement>` `<DIV>`)

lodash-template/element-name-casing

enforce HTML element name casing. (ex. 🆗 <xxx-element> 🆖 <xxxElement> <DIV>)

  • ⚙️ 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 enforces element name casing style (kebab-case).

<% /* eslint "lodash-template/element-name-casing": "error" */ %>
<!-- ✓ GOOD -->
<div>
<xxx-element>

<!-- ✗ BAD -->
<DIV>
<xxxElement>

Further Reading

Implementation