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 b46de29 commit a88481cCopy full SHA for a88481c
.github/workflows/lint.yml
@@ -0,0 +1,36 @@
1
+name: HTML & CSS Lint
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
8
9
+jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout Repository
15
+ uses: actions/checkout@v4
16
17
+ - name: Setup Node
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 18
21
22
+ - name: Install Linters
23
+ run: |
24
+ npm install -g htmlhint stylelint stylelint-config-standard
25
26
+ - name: Run HTMLHint
27
+ run: htmlhint "**/*.html"
28
29
+ - name: Create .stylelintrc for CSS Linting
30
31
+ echo '{
32
+ "extends": "stylelint-config-standard"
33
+ }' > .stylelintrc.json
34
35
+ - name: Run Stylelint
36
+ run: stylelint "**/*.css"
0 commit comments