We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
react/no-array-index-key
react/require-default-props
1 parent 6c4456d commit e1a307aCopy full SHA for e1a307a
packages/eslint-config-airbnb/rules/react.js
@@ -296,6 +296,14 @@ module.exports = {
296
beforeSelfClosing: 'always',
297
afterOpening: 'never'
298
}],
299
+
300
+ // Prevent usage of Array index in keys
301
+ // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md
302
+ 'react/no-array-index-key': 'error',
303
304
+ // Enforce a defaultProps definition for every prop that is not a required prop
305
+ // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-default-props.md
306
+ 'react/require-default-props': 'error',
307
},
308
309
settings: {
0 commit comments