Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 912 Bytes

no-capital-arguments.md

File metadata and controls

35 lines (23 loc) · 912 Bytes

no-capital-arguments

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

Anything that does not start with a lowercase letter (such as @Foo, @0, @! etc) is reserved argument names. This is purely speculative and the goal is to carve out some space for future features. If we don't end up needing them, we can always relax the restrictions down the road.

'@arguments', '@args', '@block', '@else' - is reserved names, and also will be highlighted in this rule.

Examples

This rule forbids the following:

<Foo @Bar={{true}} />
{{@Bar}}
<Foo @A={{true}} @name={{@Bar}} />

This rule allows the following:

<Foo @bar={{true}} />
{{@bar}}
<Foo @a={{true}} @name={{@bar}} />

References