This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/node_modules/eslint-plugin-react/lib/util/lifecycleMethods.js
2025-01-13 09:33:52 +03:00

31 lines
611 B
JavaScript

/**
* @fileoverview lifecycle methods
* @author Tan Nguyen
*/
'use strict';
module.exports = {
instance: [
'getDefaultProps',
'getInitialState',
'getChildContext',
'componentWillMount',
'UNSAFE_componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'UNSAFE_componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'UNSAFE_componentWillUpdate',
'getSnapshotBeforeUpdate',
'componentDidUpdate',
'componentDidCatch',
'componentWillUnmount',
'render',
],
static: [
'getDerivedStateFromProps',
],
};