Skip to content

Commit 48b2831

Browse files
authored
Create eslint-plugin-diff.yml
1 parent 42b167a commit 48b2831

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Run ESLint on your changes only
2+
on:
3+
pull_request:
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Install modules
10+
run: yarn
11+
- name: Run ESLint on your changes only
12+
env:
13+
ESLINT_PLUGIN_DIFF_COMMIT: $GITHUB_HEAD_REF
14+
run: eslint --ext .js,.jsx,.ts,.tsx .

0 commit comments

Comments
 (0)