Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1005 Bytes

File metadata and controls

31 lines (18 loc) · 1005 Bytes

ember/template-no-extra-mut-helper-argument

💼 This rule is enabled in the following configs: ✅ recommended, strict-gjs, strict-gts.

Disallows passing more than one argument to the mut helper.

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)}}

Related Rules

References

  • See the documentation for the Ember handlebars template mut helper