Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 746 Bytes

no-extra-mut-helper-argument.md

File metadata and controls

23 lines (14 loc) · 746 Bytes

no-extra-mut-helper-argument

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

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.

Examples

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 mut helper