Skip to content

Commit 924da10

Browse files
committed
✨ feat: enable react key rules
I didn't realize the base airbnb config had them disabled
1 parent a66ebc9 commit 924da10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eslint/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ module.exports = {
9999
// when using typescript, this isn't an issue
100100
'react/jsx-props-no-spreading': 'off',
101101

102+
// don't mess up 'dem arrays
103+
'react/jsx-key': 'error',
104+
'react/no-array-index-key': 'error',
105+
102106
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
103107

104108
'import/no-extraneous-dependencies': [

0 commit comments

Comments
 (0)