no-implicit-input-type
What it does
Section titled “What it does”Reports an <input> with no type.
Why it matters
Section titled “Why it matters”Without a type an input is a text field, which is easy to read as an omission; with the type written, the intent is in the markup and tools that look for text fields find it.
To fix, add type="text" (or the type that is meant).
Example
Section titled “Example”...<div role="button"></div>...<button type="button">Go</button><input name="a"><input type="text" name="b">...Configuration
Section titled “Configuration”angular: lint: rules: no-implicit-input-type: warn # off (default), warn, errorhtml: lint: rules: no-implicit-input-type: warn # off (default), warn, errorsvelte: lint: rules: no-implicit-input-type: warn # off (default), warn, errorvue: lint: rules: no-implicit-input-type: warn # off (default), warn, errorEnabled by the presets: html/html-validate-recommended.
Suppress one line with sudsy-disable-next-line no-implicit-input-type in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| html-validate | no-implicit-input-type |
full |