From d0d223dd23c25cff83fcd8dbb7acadf8b1e8c1f5 Mon Sep 17 00:00:00 2001 From: KittenTM Date: Sun, 8 Mar 2026 07:49:14 +0100 Subject: [PATCH] banging my head on this right now --- .forgejo/workflows/lint.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index 30bbf3c..1b95a69 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Linters - run: npm install -g htmlhint stylelint stylelint-config-standard eslint + run: npm install -g htmlhint stylelint stylelint-config-standard eslint globals - name: HTML run: htmlhint "**/*.html" --ignore "assets/**" - name: CSS @@ -34,4 +34,14 @@ jobs: stylelint "**/*.css" --allow-empty-input --fix || stylelint "**/*.css" --allow-empty-input - name: JS run: | - export ESLINT_USE_FLAT_CONFIG=false && npx eslint . --rule 'semi: [2, always]' --rule 'no-console: 0' --env browser \ No newline at end of file + echo "import globals from 'globals'; + export default [ + { + languageOptions: { globals: globals.browser }, + rules: { + 'semi': ['error', 'always'], + 'no-console': 'off' + } + } + ];" > eslint.config.mjs + npx eslint . \ No newline at end of file