Skip to content

no-inline-style

Detect inline style attributes.

Severity

warning

❌ Incorrect

html
<div style="color: red;">text</div>

✅ Correct

html
<div class="error">text</div>

Reference

Configuration

json
{
  "rules": {
    "no-inline-style": "error"
  }
}

Released under the MIT License.