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/api | |
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/api')
-rw-r--r-- | src/api/utils/auth.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/utils/auth.ts b/src/api/utils/auth.ts index ce30e0132..0188675fc 100644 --- a/src/api/utils/auth.ts +++ b/src/api/utils/auth.ts | |||
@@ -39,6 +39,7 @@ export const prepareLocalToken = async (requestData: { | |||
39 | await when(() => !needsToken() || !!localServerToken(), { timeout: 2000 }); | 39 | await when(() => !needsToken() || !!localServerToken(), { timeout: 2000 }); |
40 | const token = localServerToken(); | 40 | const token = localServerToken(); |
41 | if (token) { | 41 | if (token) { |
42 | // eslint-disable-next-line no-param-reassign | ||
42 | requestData.headers['X-Ferdium-Local-Token'] = token; | 43 | requestData.headers['X-Ferdium-Local-Token'] = token; |
43 | } | 44 | } |
44 | }; | 45 | }; |