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/webview/lib/RecipeWebview.ts | |
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/webview/lib/RecipeWebview.ts')
-rw-r--r-- | src/webview/lib/RecipeWebview.ts | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/webview/lib/RecipeWebview.ts b/src/webview/lib/RecipeWebview.ts index 3b6b9cc88..2e967a791 100644 --- a/src/webview/lib/RecipeWebview.ts +++ b/src/webview/lib/RecipeWebview.ts | |||
@@ -128,7 +128,6 @@ class RecipeWebview { | |||
128 | * be an absolute path to the file | 128 | * be an absolute path to the file |
129 | */ | 129 | */ |
130 | injectCSS(...files) { | 130 | injectCSS(...files) { |
131 | // eslint-disable-next-line unicorn/no-array-for-each | ||
132 | files.forEach(file => { | 131 | files.forEach(file => { |
133 | if (pathExistsSync(file)) { | 132 | if (pathExistsSync(file)) { |
134 | const styles = document.createElement('style'); | 133 | const styles = document.createElement('style'); |