-
-
Notifications
You must be signed in to change notification settings - Fork 130
41 lines (34 loc) · 940 Bytes
/
lint.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
name: Lint
on:
pull_request:
types: [opened, synchronize]
jobs:
stylelint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-stylelint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
packages: 'stylelint-order stylelint-config-clean-order'
stylelint_config: .stylelintrc.json
stylelint_input: '**/*.css'
fail_on_error: true
filter_mode: nofilter
eslint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail_on_error: true
filter_mode: nofilter