Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 557 Bytes

no-action-modifiers.md

File metadata and controls

26 lines (16 loc) · 557 Bytes

no-action-modifiers

This rule forbids the use of {{action}} modifiers on elements.

This rule forbids the following:

<button {{action 'handleClick'}}>

This rule allows the following:

<button onclick={{action 'handleClick'}}>

Configuration

The following values are valid configuration:

  • boolean -- true for enabled / false for disabled
  • array -- an array of whitelisted element tag names, which will accept action modifiers

Related Rules