mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 02:28:20 -05:00
[eslint config] [breaking] bump react pragma to v16; update class-methods-use-this's exceptMethods to include componentDidCatch
This commit is contained in:
committed by
Jordan Harband
parent
c4dcfd93a7
commit
53b2d7d245
3
packages/eslint-config-airbnb/rules/react.js
vendored
3
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user