Skip to content

Commit 53b2d7d

Browse files
Alex Baulchljharb
authored andcommitted
[eslint config] [breaking] bump react pragma to v16; update class-methods-use-this's exceptMethods to include componentDidCatch
1 parent c4dcfd9 commit 53b2d7d

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
'componentWillUpdate',
3030
'componentDidUpdate',
3131
'componentWillUnmount',
32+
'componentDidCatch',
3233
],
3334
}],
3435

@@ -363,7 +364,7 @@ module.exports = {
363364
},
364365
react: {
365366
pragma: 'React',
366-
version: '15.0'
367+
version: '16.0'
367368
},
368369
propWrapperFunctions: [
369370
'forbidExtraProps', // https://www.npmjs.com/package/airbnb-prop-types

0 commit comments

Comments
 (0)