diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-04-18 08:18:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 08:18:36 -0600 |
commit | c49723056acec489765acb54bae3889ac07f25af (patch) | |
tree | 58bea705d61a728b060e615ce514b8d4a7936c9e /src/features/workspaces/components/CreateWorkspaceForm.tsx | |
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/features/workspaces/components/CreateWorkspaceForm.tsx')
-rw-r--r-- | src/features/workspaces/components/CreateWorkspaceForm.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/workspaces/components/CreateWorkspaceForm.tsx b/src/features/workspaces/components/CreateWorkspaceForm.tsx index 0c365564a..b35ffe4d8 100644 --- a/src/features/workspaces/components/CreateWorkspaceForm.tsx +++ b/src/features/workspaces/components/CreateWorkspaceForm.tsx | |||
@@ -81,6 +81,7 @@ class CreateWorkspaceForm extends Component<IProps> { | |||
81 | className={classes.input} | 81 | className={classes.input} |
82 | showLabel={false} | 82 | showLabel={false} |
83 | // @ts-expect-error Expected 1 arguments, but got 2. | 83 | // @ts-expect-error Expected 1 arguments, but got 2. |
84 | // eslint-disable-next-line react/jsx-no-bind | ||
84 | onEnterKey={this.submitForm.bind(this, form)} | 85 | onEnterKey={this.submitForm.bind(this, form)} |
85 | focus={workspaceStore.isUserAllowedToUseFeature} | 86 | focus={workspaceStore.isUserAllowedToUseFeature} |
86 | /> | 87 | /> |
@@ -89,6 +90,7 @@ class CreateWorkspaceForm extends Component<IProps> { | |||
89 | type="submit" | 90 | type="submit" |
90 | label={intl.formatMessage(messages.submitButton)} | 91 | label={intl.formatMessage(messages.submitButton)} |
91 | // @ts-expect-error Expected 1 arguments, but got 2. | 92 | // @ts-expect-error Expected 1 arguments, but got 2. |
93 | // eslint-disable-next-line react/jsx-no-bind | ||
92 | onClick={this.submitForm.bind(this, form)} | 94 | onClick={this.submitForm.bind(this, form)} |
93 | busy={isSubmitting} | 95 | busy={isSubmitting} |
94 | buttonType={isSubmitting ? 'secondary' : 'primary'} | 96 | buttonType={isSubmitting ? 'secondary' : 'primary'} |