diff options
author | 2023-07-26 06:29:03 -0600 | |
---|---|---|
committer | 2023-07-26 17:59:03 +0530 | |
commit | 9b8f01716774a960073e944823ab727cc867a8f6 (patch) | |
tree | 732b83770baa78f5cf12776aaa33ce65bebfa418 /recipes/pleroma/webview.js | |
parent | Add Excalidraw recipe (#393) (diff) | |
download | ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.gz ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.zst ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.zip |
chore: improve lint setup (#397)
- update eslint config to closely mirror the ones from ferdium-app
- add .eslintignore
- opt in to eslint `reportUnusedDisableDirectives` config option
- remove `trailingComma: all` from `prettier` config which is default in `prettier` v3
- autofix or disable a lot of lint issues throughout codebase
- add `volta` configuration to `package.json` to autoload correct `node` and `pnpm` versions
- upgrade all `eslint` and `prettier` related dependencies to latest
- update lint:fix npm script
- reformat touched files with prettier
- bumped up minor version for all recipes that have changes
- introduced injection of 'service.css' where it was missing in many recipes
---------
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/pleroma/webview.js')
-rw-r--r-- | recipes/pleroma/webview.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes/pleroma/webview.js b/recipes/pleroma/webview.js index 41516f6..703a53f 100644 --- a/recipes/pleroma/webview.js +++ b/recipes/pleroma/webview.js | |||
@@ -16,6 +16,7 @@ const getInstanceConfig = async () => { | |||
16 | const pleromaFeConfig = frontendConfig.pleroma_fe || {}; | 16 | const pleromaFeConfig = frontendConfig.pleroma_fe || {}; |
17 | return { ...staticConfig, ...pleromaFeConfig }; | 17 | return { ...staticConfig, ...pleromaFeConfig }; |
18 | } catch (error) { | 18 | } catch (error) { |
19 | // eslint-disable-next-line no-console | ||
19 | console.log('Failed to load dynamic frontend configuration', error); | 20 | console.log('Failed to load dynamic frontend configuration', error); |
20 | return staticConfig; | 21 | return staticConfig; |
21 | } | 22 | } |
@@ -162,6 +163,7 @@ module.exports = Ferdium => { | |||
162 | }); | 163 | }); |
163 | }, | 164 | }, |
164 | error => { | 165 | error => { |
166 | // eslint-disable-next-line no-console | ||
165 | console.log('Failed to load instance logo', error); | 167 | console.log('Failed to load instance logo', error); |
166 | Ferdium.loop(getMessages); | 168 | Ferdium.loop(getMessages); |
167 | }, | 169 | }, |