-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (45 loc) · 1.18 KB
/
linters.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: linters
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
js-linter:
name: Javascript linter (standard)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Init yarn
run: yarn init -y
- name: Install standard modules
run: yarn add standard
- name: Run Standard
run: yarn standard html/index.js
- uses: crate-ci/typos@master
css-linter:
name: CSS linter (stylelint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Init yarn
run: yarn init -y
- name: Install standard modules
run: yarn add stylelint stylelint-config-standard
- name: create stylelint config file
run: |
cat << EOF > .stylelintrc
{ "extends": ["stylelint-config-standard"] }
EOF
- name: Run stylelint
run: yarn stylelint html/*.css
html-linter:
name: HTML linter (html5validator)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Cyb3r-Jak3/[email protected]
with:
root: html/
extra: --ignore inline