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/stores/lib | |
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/stores/lib')
-rw-r--r-- | src/stores/lib/Request.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stores/lib/Request.ts b/src/stores/lib/Request.ts index e7739bba1..566fa5018 100644 --- a/src/stores/lib/Request.ts +++ b/src/stores/lib/Request.ts | |||
@@ -4,7 +4,7 @@ import { action, computed, makeObservable, observable } from 'mobx'; | |||
4 | type Hook = (request: Request) => void; | 4 | type Hook = (request: Request) => void; |
5 | 5 | ||
6 | export default class Request { | 6 | export default class Request { |
7 | static _hooks: Hook[] = []; | 7 | static readonly _hooks: Hook[] = []; |
8 | 8 | ||
9 | static registerHook(hook: Hook) { | 9 | static registerHook(hook: Hook) { |
10 | Request._hooks.push(hook); | 10 | Request._hooks.push(hook); |