forked from spacebar/SplatNet
32 lines
No EOL
926 B
YAML
32 lines
No EOL
926 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" --ignore "assets/**"
|
|
- name: CSS
|
|
run: |
|
|
stylelint "**/*.css" \
|
|
--allow-empty-input \
|
|
--fix \
|
|
--config '{
|
|
"extends": ["stylelint-config-standard"],
|
|
"rules": {
|
|
"no-duplicate-selectors": null,
|
|
"no-descending-specificity": null,
|
|
"declaration-block-no-shorthand-property-overrides": null,
|
|
"font-family-no-duplicate-names": null
|
|
}
|
|
}'
|
|
- name: JS
|
|
run: 'npx eslint . --no-eslintrc --rule "semi: [2, always]" --rule "no-console: 0" --env browser' |