mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
chore: add eslint to pre-commit hooks (#31845)
This commit is contained in:
committed by
GitHub
parent
ffb6913706
commit
4bad1a258f
2
.github/workflows/pre-commit.yml
vendored
2
.github/workflows/pre-commit.yml
vendored
@@ -41,6 +41,8 @@ jobs:
|
||||
- name: pre-commit
|
||||
run: |
|
||||
set +e # Don't exit immediately on failure
|
||||
# Skip eslint as it requires `npm ci` and is executed in another job
|
||||
export SKIP=eslint
|
||||
pre-commit run --all-files
|
||||
if [ $? -ne 0 ] || ! git diff --quiet --exit-code; then
|
||||
echo "❌ Pre-commit check failed."
|
||||
|
||||
Reference in New Issue
Block a user