From d1c9adf763ffce6957172be041888bb5303c30d7 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 21 Feb 2026 21:47:15 +0100 Subject: [PATCH] Include "tools" folder in "lint" packagejson script --- .eslintrc.cjs | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 4a2cfc7c..099f83b1 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -99,6 +99,7 @@ module.exports = { { files: ['tools/scripts/**/*'], rules: { + 'no-console': 'off', 'no-relative-import-paths/no-relative-import-paths': 'off', 'import/no-extraneous-dependencies': ['error', { devDependencies: true }], }, diff --git a/package.json b/package.json index a6ae47ee..27c6bbf0 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test": "node -e \"console.log('imagine')\"", "build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum| awk '{ print $1 }' > buildZip/md5sum ", "build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Suwayomi-WebUI-r$rev *", - "lint": "eslint src --ext .ts,.tsx,.js,.jsx --max-warnings=0 --cache", + "lint": "eslint src tools --ext .ts,.tsx,.js,.jsx --max-warnings=0 --cache", "createCommitChangelog": "tsx tools/scripts/release/createCommitChangelog.ts", "createTranslationChangelog": "tsx tools/scripts/release/createTranslationChangelog.ts", "createReleaseChangelog": "tsx tools/scripts/release/createReleaseChangelog.ts",