Add autofix/diff checker to ESLint
This commit is contained in:
6
.github/workflows/validate-js.yml
vendored
6
.github/workflows/validate-js.yml
vendored
@@ -86,3 +86,9 @@ jobs:
|
||||
|
||||
- name: Run ESLint
|
||||
run: yarn lint -f @jamesacarr/github-actions
|
||||
|
||||
- name: Run ESLint with auto-fix
|
||||
run: yarn lint --fix
|
||||
|
||||
- name: Verify no files have changed after auto-fix
|
||||
run: git diff --exit-code HEAD
|
||||
|
Reference in New Issue
Block a user