Skip to content

Commit 7987114

Browse files
fterdalglebec
authored andcommitted
disables rules about setState in didmount and didupdate (#58)
1 parent 87e0eab commit 7987114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ module.exports = {
3939
'react/no-danger': 1, // Prevent usage of dangerous JSX properties
4040
'react/no-danger-with-children': 1, // Prevent problem with children and props.dangerouslySetInnerHTML
4141
'react/no-deprecated': 1, // Prevent usage of deprecated methods
42-
'react/no-did-mount-set-state': 1, // Prevent usage of setState in componentDidMount
43-
'react/no-did-update-set-state': 1, // Prevent usage of setState in componentDidUpdate
42+
'react/no-did-mount-set-state': 0, // Prevent usage of setState in componentDidMount
43+
'react/no-did-update-set-state': 0, // Prevent usage of setState in componentDidUpdate
4444
'react/no-direct-mutation-state': 2, // Prevent direct mutation of this.state
4545
'react/no-find-dom-node': 1, // Prevent usage of findDOMNode
4646
'react/no-is-mounted': 1, // Prevent usage of isMounted

0 commit comments

Comments
 (0)