SplatNet/.forgejo/workflows/lint.yml
KittenTM 5a4d003c5b
remove package.json dependency
thats what i get for copy pasting code from the internet
2026-03-08 07:17:49 +01:00

35 lines
No EOL
1,023 B
YAML

name: CodeQL
on:
push:
branches: [main]
pull_request:
jobs:
lint-debian:
runs-on: debian-latest
steps:
- uses: actions/checkout@v4
- name: Install Linters
run: npm install -g htmlhint stylelint stylelint-config-standard eslint
- name: HTML
run: htmlhint "**/*.html"
- name: CSS
run: stylelint "**/*.css" --config-basedir /usr/local/lib/node_modules
- name: JS
run: "npx eslint . --no-eslintrc --rule 'semi: [2, always]' --rule 'no-console: 0'"
lint-ubuntu:
needs: lint-debian
if: failure()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Linters
run: npm install -g htmlhint stylelint stylelint-config-standard eslint
- name: HTML
run: htmlhint "**/*.html"
- name: CSS
run: stylelint "**/*.css" --config-basedir /usr/local/lib/node_modules
- name: JS
run: "npx eslint . --no-eslintrc --rule 'semi: [2, always]' --rule 'no-console: 0'"