Skip to content

Commit

Permalink
Update no-array-index-key.md to address issue 1123
Browse files Browse the repository at this point in the history
  • Loading branch information
penx committed Mar 23, 2017
1 parent 9bb68c1 commit 08f451f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-array-index-key.md
Expand Up @@ -95,3 +95,7 @@ things.reduceRight((collection, thing) => (
collection.concat(<Hello key={thing.id} />)
), []);
```

## When Not To Use It

If there is nothing unique about the items, for example [you are breaking an array down in to chunks](https://github.com/yannickcr/eslint-plugin-react/issues/1123), then you may want to disable this rule with an override.

1 comment on commit 08f451f

@jagruuti
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @penx, Might be a naive question. How did you override it? I didn't find no-array-index-key rule in the ESLint configuration document. Can you show me how did you do it? I want to disable no-array-index-key rule.

Please sign in to comment.