diff options
author | 2024-04-18 08:18:36 -0600 | |
---|---|---|
committer | 2024-04-18 08:18:36 -0600 | |
commit | c49723056acec489765acb54bae3889ac07f25af (patch) | |
tree | 58bea705d61a728b060e615ce514b8d4a7936c9e /src/features/appearance | |
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/appearance')
-rw-r--r-- | src/features/appearance/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/features/appearance/index.ts b/src/features/appearance/index.ts index 049080505..9b7715a23 100644 --- a/src/features/appearance/index.ts +++ b/src/features/appearance/index.ts | |||
@@ -46,6 +46,7 @@ function generateAccentStyle(accentColorStr) { | |||
46 | try { | 46 | try { |
47 | accentColor = color(accentColorStr); | 47 | accentColor = color(accentColorStr); |
48 | } catch { | 48 | } catch { |
49 | // eslint-disable-next-line no-param-reassign | ||
49 | accentColorStr = DEFAULT_APP_SETTINGS.accentColor; | 50 | accentColorStr = DEFAULT_APP_SETTINGS.accentColor; |
50 | accentColor = color(accentColorStr); | 51 | accentColor = color(accentColorStr); |
51 | } | 52 | } |