🔧 This rule is automatically fixable by the --fix CLI option.
💼 This rule is enabled in the following configs: strict-gjs, strict-gts.
Disallow usage of Ember Array prototype extensions.
Ember historically provided Array prototype extensions like firstObject and lastObject. These extensions are deprecated and should be replaced with native JavaScript array methods or computed properties.
This rule disallows using Ember Array prototype extensions in templates:
firstObjectlastObject@each[]
<template>
{{this.items.firstObject}}
</template><template>
{{this.users.lastObject}}
</template><template>
{{this.data.@each}}
</template><template>
{{get this.items 0}}
</template><template>
{{this.firstItem}}
</template><template>
{{#each this.items as |item|}}
{{item}}
{{/each}}
</template>