From 8a372c1454bacc3ad4bac517a2462b6fad8b6cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Mon, 28 Sep 2026 17:34:12 +0200 Subject: [PATCH] lint js --- .../brewUtils/brewCleanup/brewCleanup.jsx | 8 +- .../components/anchorPositioningPolyfill.js | 2 +- client/components/codeEditor/codeEditor.jsx | 2 +- .../codeEditor/extensions/customKeyMaps.js | 23 +- client/components/combobox.jsx | 2 +- client/components/dropdown/dropdown.jsx | 4 +- client/homebrew/brewRenderer/brewRenderer.jsx | 11 +- .../homebrew/brewRenderer/toolBar/toolBar.jsx | 8 +- client/homebrew/editor/editor.jsx | 2 +- .../editor/settingsEditor/settingsEditor.jsx | 2 +- client/homebrew/navbar/print.navitem.jsx | 2 +- client/homebrew/pages/editPage/editPage.jsx | 4 +- client/homebrew/pages/homePage/homePage.jsx | 2 +- client/homebrew/pages/newPage/newPage.jsx | 4 +- .../utils/commonEditPageFunctions.jsx | 14 +- server/admin.api.js | 18 +- server/app.js | 8 +- server/homebrew.api.spec.js | 222 +++++++++--------- tests/html/helpers.test.js | 42 ++-- tests/markdown/non-breaking-spaces.test.js | 2 +- themes/V3/Blank/snippets.js | 2 +- 21 files changed, 191 insertions(+), 193 deletions(-) diff --git a/client/admin/brewUtils/brewCleanup/brewCleanup.jsx b/client/admin/brewUtils/brewCleanup/brewCleanup.jsx index 7d6c34f55..cceb961f2 100644 --- a/client/admin/brewUtils/brewCleanup/brewCleanup.jsx +++ b/client/admin/brewUtils/brewCleanup/brewCleanup.jsx @@ -10,7 +10,7 @@ const BrewCleanup = ({})=>{ const [error, setError] = useState(null); const find = async (type)=>{ - + if(type === 'junk') try { setPendingJunk(true); @@ -109,18 +109,18 @@ const BrewCleanup = ({})=>{ {Moment(brew.updatedAt).fromNow()} {brew.lastViewed ? Moment(brew.lastViewed).fromNow() : 'No last viewed date'} {brew.googleId ? 'Google' : 'Homebrewery'} - + ; })} ; }; const renderFound = (type)=>{ - const deleteButton = !(type === 'junk' && junkBrewCollection.length === 0 || type === 'lost' && lostBrewCollection.length === 0); + const deleteButton = !(type === 'junk' && junkBrewCollection.length === 0 || type === 'lost' && lostBrewCollection.length === 0); return
{deleteButton &&