The builtin Input
component has several arguments that match attributes
of the lower-case input
HTML element. These arguments should be set via e.g.
@type
, instead of type
, but it is easy to forget and can cause subtle
issues.
This rule warns about Input
component invocations that use the following attributes instead of arguments:
checked
type
value
Please note that this rule currently only warns about these three attributes on
the Input
component, but might be extended in the future to also warn about
other attributes or builtin components.
This rule forbids the following:
This rule allows the following:
- Add the
@
character in front of the relevant attributes to convert them into component argument