✅ The extends: 'recommended'
property in a configuration file enables this rule.
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
The builtin Textarea
component has several arguments that match properties
of the lower-case textarea
HTML element. These arguments should be set via e.g.
@value
, instead of value
, but it is easy to forget and can cause subtle
issues.
This rule warns about Textarea
component invocations that use the following attributes instead of arguments:
value
Please note that this rule currently only warns about these three attributes on
the Input
, and one property on the Textarea
components, 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