-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (52 loc) · 1.56 KB
/
reviewdog.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
47
48
49
50
51
52
53
54
55
56
57
58
name: Reviewdog
on: [pull_request]
jobs:
reviewdog:
if: github.event.pull_request.draft == false
name: Reviewdog
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: package.json
- run: npm ci
- run: npm audit signatures
- name: Prettier
uses: EPMatt/reviewdog-action-prettier@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
level: warning
fail_on_error: false
prettier_flags: "**/*.+(js|json|ts|tsx|md|mdx|yml)"
- name: ESLint
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: added
level: warning
fail_on_error: false
eslint_flags: . --report-unused-disable-directives
- name: Stylelint
uses: reviewdog/action-stylelint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: file
level: warning
fail_on_error: false
stylelint_input: "**/*.+(ts|tsx)"
- name: TypeScript
uses: EPMatt/reviewdog-action-tsc@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
filter_mode: nofilter
level: warning
fail_on_error: false