Skip to content

Commit

Permalink
✨ feat: enable react key rules
Browse files Browse the repository at this point in the history
I didn't realize the base airbnb config had them disabled
  • Loading branch information
chadly committed Dec 22, 2020
1 parent a66ebc9 commit 924da10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ module.exports = {
// when using typescript, this isn't an issue
'react/jsx-props-no-spreading': 'off',

// don't mess up 'dem arrays
'react/jsx-key': 'error',
'react/no-array-index-key': 'error',

'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],

'import/no-extraneous-dependencies': [
Expand Down

0 comments on commit 924da10

Please sign in to comment.