Skip to content

Commit c40db32

Browse files
authored
Merge pull request #5 from samhirtarif/add_linting_workflow
Add linting workflow
2 parents d1ce424 + 3bae9a2 commit c40db32

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run ESLint
2+
on: [pull_request]
3+
4+
env:
5+
GITHUB_TOKEN: ${{ github.token }}
6+
jobs:
7+
eslint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: "16.x"
14+
- name: install dependencies
15+
run: npm ci
16+
- uses: reviewdog/action-eslint@v1
17+
with:
18+
reporter: github-pr-review
19+
eslint_flags: "src/"
20+
fail_on_error: "true"
21+
level: "warning"

0 commit comments

Comments
 (0)