Skip to content

Commit

Permalink
fix(eslint-config): disable no-array-index-key rule in react
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Jan 15, 2025
1 parent 7adcccc commit 5e4e995
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-spies-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tszhong0411/eslint-config': patch
---

Disable no-array-index-key rule in react
1 change: 1 addition & 0 deletions packages/eslint-config/src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const react = (options?: Options): Linter.Config[] => {
'@eslint-react/avoid-shorthand-boolean': 'off',
'@eslint-react/avoid-shorthand-fragment': 'off',
'@eslint-react/prefer-destructuring-assignment': 'off',
'@eslint-react/no-array-index-key': 'off',

// @eslint-react/hooks-extra
'@eslint-react/hooks-extra/no-direct-set-state-in-use-effect': 'off',
Expand Down

0 comments on commit 5e4e995

Please sign in to comment.