From a947d5b3cff32104ee009113226feab45439dbdd Mon Sep 17 00:00:00 2001 From: Ivan Gabaldon Date: Sat, 28 Jun 2025 09:55:15 +0200 Subject: [mod] theme/simple: improve fmt/lint tech This is one of various PR to refactor the simple theme internally. Replace eslint tool with Biome. I have been using this for quite some time, and it will help us to have more consistent and valid code without extending on other third party plugins. Removes unused dependencies. --- utils/lib_sxng_static.sh | 3 ++- utils/lib_sxng_themes.sh | 23 ++++++++++++++++++++--- utils/lib_sxng_vite.sh | 11 +++++++++-- 3 files changed, 31 insertions(+), 6 deletions(-) (limited to 'utils') diff --git a/utils/lib_sxng_static.sh b/utils/lib_sxng_static.sh index b10af3b40..43af38d0f 100755 --- a/utils/lib_sxng_static.sh +++ b/utils/lib_sxng_static.sh @@ -98,7 +98,8 @@ static.build.commit() { ( set -e # fix & build the themes - themes.fix + themes.fix + themes.lint themes.all # add build files diff --git a/utils/lib_sxng_themes.sh b/utils/lib_sxng_themes.sh index 23faf0e4b..542ac265d 100755 --- a/utils/lib_sxng_themes.sh +++ b/utils/lib_sxng_themes.sh @@ -5,14 +5,23 @@ themes.help(){ cat < /dev/null ) @@ -50,6 +50,13 @@ vite.simple.fix() { ) } +vite.simple.lint() { + ( set -e + node.env + npm --prefix client/simple run lint + ) +} + templates.simple.pygments() { build_msg PYGMENTS "searxng_extra/update/update_pygments.py" pyenv.cmd python searxng_extra/update/update_pygments.py \ -- cgit v1.2.3