no-extra-mut-helper-argument.md
January 4, 2019 ยท View on GitHub
no-extra-mut-helper-argument
A common mistake when using the Ember handlebars template mut(attr) helper is to pass an extra value parameter to it when only attr should be passed. Instead, the value should be passed outside of mut.
This rule forbids the following:
{{my-component click=(action (mut isClicked true))}}
This rule allows the following:
{{my-component click=(action (mut isClicked) true)}}
References
- See the documentation for the Ember handlebars template
muthelper