Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 554 Bytes

lint-rules.md

File metadata and controls

25 lines (17 loc) · 554 Bytes

scoped-class-helper

This rule checks if scoped-class helper has one positional param of type StringLiteral. The following example shows the correct use of the helper:

<SomeComponent @class={{scoped-class 'first-class second-class'}} />

Examples

This rule forbids the following:

  1. Wrong number of positional params
<SomeComponent @class={{scoped-class}} />
<SomeComponent @class={{scoped-class 'first-class' 'second-param'}} />
  1. Dynamic properties
<SomeComponet @class={{scoped-class this.myClass}} />