Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1016 Bytes

no-input-tagname.md

File metadata and controls

27 lines (18 loc) · 1016 Bytes

no-input-tagname

✅ The extends: 'recommended' property in a configuration file enables this rule.

{{input tagName=x}} will result in obtuse errors. Typically, the input will simply fail to render, whether used in block form or inline. The only valid tagName for the input helper is input. For textarea, button, and other input-like elements, you should instead create a new component or better use the DOM!

Examples

This rule forbids the following:

{{input tagName="foo"}}
{{input tagName=X}}
{{component "input" tagName="foo"}}
{{component "input" tagName=X}}
{{yield (component "input" tagName="foo")}}
{{yield (component "input" tagName=X)}}

Related rules

References