add a bot for eslint on github

This commit is contained in:
LouisLam 2021-08-09 00:09:33 +08:00
parent 6ca7ca4e7e
commit 8e440f7dff

12
.github/workflows/reviewdog.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: reviewdog
on: [pull_request]
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-review # Change reporter.
eslint_flags: 'src/'