This repository has been archived on 2024-09-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
front/node_modules/eslint-plugin-react/lib/util/lifecycleMethods.js
2024-09-18 13:34:19 -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',
],
};