diff --git a/package.json b/package.json index 2433894..8cc332a 100644 --- a/package.json +++ b/package.json @@ -96,12 +96,9 @@ }, "eslintConfig": { "root": true, - "extends": [ - "react-app" - ], + "extends": ["react-app"], "rules": { "react/display-name": "off", - "react/no-access-state-in-setstate": "error", "react/prop-types": "off" } } diff --git a/src/components/login/ForgotPassword.tsx b/src/components/login/ForgotPassword.tsx index 8a587b0..ea10ecd 100644 --- a/src/components/login/ForgotPassword.tsx +++ b/src/components/login/ForgotPassword.tsx @@ -31,7 +31,7 @@ class ForgotPassword extends Component< * Handle collapsing the body when clicked */ onClick = () => { - this.setState(prevState => ({ collapsed: !prevState.collapsed })); + this.setState({ collapsed: !this.state.collapsed }); }; /** diff --git a/src/components/settings/VersionCard.tsx b/src/components/settings/VersionCard.tsx index 46d4b09..64cac22 100644 --- a/src/components/settings/VersionCard.tsx +++ b/src/components/settings/VersionCard.tsx @@ -48,9 +48,7 @@ class VersionCard extends Component {