# ember/template-no-obscure-array-access 💼 This rule is enabled in the 📋 `template-lint-migration` [config](https://github.com/ember-cli/eslint-plugin-ember#-configurations). 🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). Disallow obscure array access patterns in templates. ## Rule Details This rule discourages the use of obscure array access patterns in templates, including: - Numeric array index access like `{{list.[0]}}` or `{{list.[1].name}}` - `@each` property access like `{{items.@each.name}}` - `[]` property access like `{{items.[].property}}` Using obscure expressions like `{{list.[1].name}}` is discouraged. This rule recommends the use of Ember's `get` helper as an alternative for accessing array values. ## Examples Examples of **incorrect** code for this rule: ```gjs ``` ```gjs ``` ```gjs ``` ```gjs ``` Examples of **correct** code for this rule: ```gjs ``` ```gjs ``` ```gjs ``` ## References - [eslint-plugin-ember template-no-obscure-array-access](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-obscure-array-access.md)