[eslint config] [breaking] bump react pragma to v16; update class-methods-use-this's exceptMethods to include componentDidCatch

This commit is contained in:
Alex Baulch
2018-01-22 10:42:28 +00:00
committed by Jordan Harband
parent c4dcfd93a7
commit 53b2d7d245

View File

@@ -29,6 +29,7 @@ module.exports = {
'componentWillUpdate',
'componentDidUpdate',
'componentWillUnmount',
'componentDidCatch',
],
}],
@@ -363,7 +364,7 @@ module.exports = {
},
react: {
pragma: 'React',
version: '15.0'
version: '16.0'
},
propWrapperFunctions: [
'forbidExtraProps', // https://www.npmjs.com/package/airbnb-prop-types