From 5a4d003c5b16c474e05960d27bbfbe171b2e19ea Mon Sep 17 00:00:00 2001 From: KittenTM Date: Sun, 8 Mar 2026 07:17:49 +0100 Subject: [PATCH] remove package.json dependency thats what i get for copy pasting code from the internet --- .forgejo/workflows/lint.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index 34f6c5f..342f613 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -8,32 +8,28 @@ on: jobs: lint-debian: runs-on: debian-latest - container: - image: node:20-bookworm steps: - uses: actions/checkout@v4 - - name: Install - run: npm install + - name: Install Linters + run: npm install -g htmlhint stylelint stylelint-config-standard eslint - name: HTML - run: npx htmlhint "**/*.html" + run: htmlhint "**/*.html" - name: CSS - run: npx stylelint "**/*.css" + run: stylelint "**/*.css" --config-basedir /usr/local/lib/node_modules - name: JS - run: npx eslint . + run: "npx eslint . --no-eslintrc --rule 'semi: [2, always]' --rule 'no-console: 0'" lint-ubuntu: needs: lint-debian if: failure() runs-on: ubuntu-latest - container: - image: node:20-bookworm steps: - uses: actions/checkout@v4 - - name: Install - run: npm install + - name: Install Linters + run: npm install -g htmlhint stylelint stylelint-config-standard eslint - name: HTML - run: npx htmlhint "**/*.html" + run: htmlhint "**/*.html" - name: CSS - run: npx stylelint "**/*.css" + run: stylelint "**/*.css" --config-basedir /usr/local/lib/node_modules - name: JS - run: npx eslint . \ No newline at end of file + run: "npx eslint . --no-eslintrc --rule 'semi: [2, always]' --rule 'no-console: 0'" \ No newline at end of file