lowercase
This rule enforces to use lowercase for tag and attribute names.
How to use
.eslintrc.js
module.exports = {
rules: {
"@html-eslint/lowercase": "error",
},
};
Rule Details
Examples of incorrect code for this rule:
<Div></Div>
<div ID="foo"></div>
<SCRIPT></SCRIPT>
<sTyle></sTyle>
Examples of correct code for this rule:
<div></div>
<div id="foo"></div>
<script></script>
<style></style>