diff options
author | 2024-04-18 08:18:36 -0600 | |
---|---|---|
committer | 2024-04-18 08:18:36 -0600 | |
commit | c49723056acec489765acb54bae3889ac07f25af (patch) | |
tree | 58bea705d61a728b060e615ce514b8d4a7936c9e /src/containers/auth | |
parent | feat: hide all services workspace (#1713) (diff) | |
download | ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.gz ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.zst ferdium-app-c49723056acec489765acb54bae3889ac07f25af.zip |
refactor: bring down eslint warnings to zero (#1714)
- install `@eslint-react/eslint-plugin` dependency
- configure `@eslint-react/eslint-plugin` in eslint config
- modernize `lint` command in `package.json`
- disable or fix various reported lint issues
- fix `div` being nested in `p` for settings
- replace deprecated `event.keyCode` with `event.key`
- update isEscKeyPress method and unit tests which used deprecated `event.keyCode`
- allow `eslint` v8 as peer dependency for `@eslint-react/eslint-plugin`
Diffstat (limited to 'src/containers/auth')
-rw-r--r-- | src/containers/auth/AuthReleaseNotesScreen.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/containers/auth/AuthReleaseNotesScreen.tsx b/src/containers/auth/AuthReleaseNotesScreen.tsx index 3191ba139..eac537ad6 100644 --- a/src/containers/auth/AuthReleaseNotesScreen.tsx +++ b/src/containers/auth/AuthReleaseNotesScreen.tsx | |||
@@ -43,6 +43,7 @@ class AuthReleaseNotesScreen extends Component<IProps, IState> { | |||
43 | intl, | 43 | intl, |
44 | ); | 44 | ); |
45 | 45 | ||
46 | // eslint-disable-next-line @eslint-react/no-set-state-in-component-did-mount | ||
46 | this.setState({ | 47 | this.setState({ |
47 | data, | 48 | data, |
48 | }); | 49 | }); |