Skip to content

Commit ab72ab9

Browse files
Hypnosphiljharb
authored andcommitted
[eslint config] [patch] Remove duplicate componentDidCatch
See airbnb#2043 (comment) I left the one before `cWU`, as in [defaults](airbnb#2043 (comment))
1 parent dee4f17 commit ab72ab9

File tree

1 file changed

+1
-2
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+1
-2
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ module.exports = {
277277
'getSnapshotBeforeUpdate',
278278
'componentDidUpdate',
279279
'componentDidCatch',
280-
'componentWillUnmount',
281-
'componentDidCatch'
280+
'componentWillUnmount'
282281
],
283282
rendering: [
284283
'/^render.+$/',

0 commit comments

Comments
 (0)