mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
(cherry picked from commit e0928efac0
)
Co-authored-by: Spencer <spencer@elastic.co>
This commit is contained in:
parent
5bdb075673
commit
3010959f7b
1 changed files with 19 additions and 1 deletions
|
@ -9,7 +9,25 @@ source .buildkite/scripts/common/util.sh
|
|||
echo '--- Lint: stylelint'
|
||||
checks-reporter-with-killswitch "Lint: stylelint" \
|
||||
node scripts/stylelint
|
||||
echo "stylelint ✅"
|
||||
|
||||
# disable "Exit immediately" mode so that we can run eslint, capture it's exit code, and respond appropriately
|
||||
# after possibly commiting fixed files to the repo
|
||||
set +e;
|
||||
|
||||
echo '--- Lint: eslint'
|
||||
checks-reporter-with-killswitch "Lint: eslint" \
|
||||
node scripts/eslint --no-cache
|
||||
node scripts/eslint --no-cache --fix
|
||||
|
||||
eslint_exit=$?
|
||||
|
||||
# re-enable "Exit immediately" mode
|
||||
set -e;
|
||||
|
||||
check_for_changed_files 'node scripts/eslint --no-cache --fix' true
|
||||
|
||||
if [[ "${eslint_exit}" != "0" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "eslint ✅"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue