From 712f1caa0e2e94e82e8e0eba127fa64d27ac2063 Mon Sep 17 00:00:00 2001 From: nocci Date: Thu, 8 Jan 2026 13:18:45 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20build(workflows):=20add=20eslint?= =?UTF-8?q?=20configuration=20for=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - introduce .eslintrc.json file for ESLint settings - configure environment, parser options, and rules for linting ✅ test(workflows): update build workflow with eslint integration - integrate ESLint configuration into GitHub Actions workflow - ensure lint job utilizes the new .eslintrc.json settings --- .forgejo/workflows/.eslintrc.json | 25 +++++++++++++++++++++++++ .forgejo/workflows/build.yml | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 .forgejo/workflows/.eslintrc.json diff --git a/.forgejo/workflows/.eslintrc.json b/.forgejo/workflows/.eslintrc.json new file mode 100644 index 0000000..346226c --- /dev/null +++ b/.forgejo/workflows/.eslintrc.json @@ -0,0 +1,25 @@ +{ + "env": { + "node": true, + "es2021": true + }, + "extends": [ + "eslint:recommended" + ], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "rules": { + "no-unused-vars": "warn", + "no-undef": "error" + }, + "globals": { + "cfg": "readonly", + "URL_CLAIM": "readonly", + "authenticator": "readonly", + "prompt": "readonly", + "notify": "readonly" + } +} + diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 6b6dfad..fcba226 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -125,3 +125,5 @@ jobs: run: | docker push "${{ secrets.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}" + +