Skip to main content

no-default-value

info

🔧 This rule supports auto-fix with the --fix option.

Warn when it specifies the default value to the attribute.

❌ Examples of incorrect code for this rule

<canvas width="300" height="150"></canvas>

✅ Examples of correct code for this rule

<canvas></canvas>

Interface

{
"no-default-value": boolean
}

Default Severity

warning