We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc9e6d7 commit 6329628Copy full SHA for 6329628
.github/workflows/lint-frontend.yml
@@ -0,0 +1,28 @@
1
+name: Lint Frontend
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ lint-frontend:
7
+ runs-on: ubuntu-latest
8
+ name: Lint HTML, CSS, and JS
9
+ steps:
10
+ - uses: actions/checkout@v3
11
12
+ - name: Set up Node.js
13
+ uses: actions/setup-node@v4
14
+ with:
15
+ node-version: '18'
16
17
+ - name: Install linters
18
+ run: |
19
+ npm install -g htmlhint stylelint eslint
20
21
+ - name: Lint HTML
22
+ run: htmlhint app/src/main/resources/static/assets/pages//*.html || true
23
24
+ - name: Lint CSS
25
+ run: stylelint "app/src/main/resources/static/assets/css//*.css" || true
26
27
+ - name: Lint JS
28
+ run: eslint app/src/main/resources/static/assets/js//*.js || true
0 commit comments