mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[eslint config] Add missing/unsafe lifecycle methods to react/sort-comp rule
This commit is contained in:
committed by
Jordan Harband
parent
8c686eac4b
commit
61c7ae6189
6
packages/eslint-config-airbnb/rules/react.js
vendored
6
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -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'
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user