aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/quickSwitch
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-04-18 08:18:36 -0600
committerLibravatar GitHub <noreply@github.com>2024-04-18 08:18:36 -0600
commitc49723056acec489765acb54bae3889ac07f25af (patch)
tree58bea705d61a728b060e615ce514b8d4a7936c9e /src/features/quickSwitch
parentfeat: hide all services workspace (#1713) (diff)
downloadferdium-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/quickSwitch')
-rw-r--r--src/features/quickSwitch/Component.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/quickSwitch/Component.tsx b/src/features/quickSwitch/Component.tsx
index 4a48b1e6c..3a7477f62 100644
--- a/src/features/quickSwitch/Component.tsx
+++ b/src/features/quickSwitch/Component.tsx
@@ -302,6 +302,7 @@ class QuickSwitchModal extends Component<IProps, IState> {
302 isOpen={isModalVisible} 302 isOpen={isModalVisible}
303 className={`${classes.modal} quick-switch`} 303 className={`${classes.modal} quick-switch`}
304 shouldCloseOnOverlayClick 304 shouldCloseOnOverlayClick
305 // eslint-disable-next-line react/jsx-no-bind
305 close={this.close.bind(this)} 306 close={this.close.bind(this)}
306 > 307 >
307 <H1 className={classes.headline}> 308 <H1 className={classes.headline}>
@@ -318,6 +319,7 @@ class QuickSwitchModal extends Component<IProps, IState> {
318 319
319 <div className={classes.services}> 320 <div className={classes.services}>
320 {services.map((service, index) => ( 321 {services.map((service, index) => (
322 // eslint-disable-next-line jsx-a11y/no-static-element-interactions
321 <div 323 <div
322 className={`${classes.service} ${ 324 className={`${classes.service} ${
323 this.state.selected === index 325 this.state.selected === index