Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 928 Bytes

no-invalid-block-param-definition.md

File metadata and controls

43 lines (31 loc) · 928 Bytes

no-invalid-block-param-definition

There are a few common failure scenarios when using angle bracket components that use block parameters. This rule attempts to identify these pitfalls.

Examples

This rule forbids the following:

<MyComponent  |blockParam|>
    {{blockParam}}
</MyComponent>
<MyComponent  |blockParam>
    {{blockParam}}
</MyComponent>
<MyComponent  blockParam|>
    {{blockParam}}
</MyComponent>

This rule allows the following:

<MyComponent as |blockParam|>
    {{blockParam}}
</MyComponent>

Related rules

References