Disallow implicit input type

Rule ID:
no-implicit-input-type
Category:
Style
Standards:
-

When the type attribute is omitted it defaults to text. Being explicit about the intended type better conveys the purpose of the input field.

Rule details

Examples of incorrect code for this rule:

<input>
error: <input> is missing recommended "type" attribute (no-implicit-input-type) at inline:1:2:
> 1 | <input>
    |  ^^^^^


1 error found.

Examples of correct code for this rule:

<input type="text">

Version history