✅ The extends: 'recommended'
property in a configuration file enables this rule.
Arguments that are passed to components are prefixed with the @
symbol in Angle bracket syntax.
Ember Octane leverages this in the component's templates by allowing users to directly refer to an argument using the same prefix:
We can immediately tell now by looking at this template that @todos
is an argument that was passed to the component externally. This is in fact always true - there is no way to modify the value referenced by @todos
from the component class, it is the original, unmodified value.
This rule forbids the following:
This rule allows the following:
- find in templates
this.args.
replace to@