[eslint config] Add missing/unsafe lifecycle methods to react/sort-comp rule

This commit is contained in:
Felipe Pinheiro
2019-06-17 12:58:54 -03:00
committed by Jordan Harband
parent 8c686eac4b
commit 61c7ae6189

View File

@@ -265,12 +265,18 @@ module.exports = {
'getInitialState',
'state',
'getChildContext',
'getDerivedStateFromProps',
'componentWillMount',
'UNSAFE_componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'UNSAFE_componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'UNSAFE_componentWillUpdate',
'getSnapshotBeforeUpdate',
'componentDidUpdate',
'componentDidCatch',
'componentWillUnmount',
'componentDidCatch'
],