forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlint.sh
More file actions
executable file
·35 lines (26 loc) · 846 Bytes
/
lint.sh
File metadata and controls
executable file
·35 lines (26 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
set -euo pipefail
source .buildkite/scripts/common/util.sh
# .buildkite/scripts/bootstrap.sh
# echo '--- Lint: stylelint'
# node scripts/stylelint
# echo "stylelint ✅"
# echo '--- Lint: eslint'
# # 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;
# if is_pr && ! is_auto_commit_disabled; then
# desc="node scripts/eslint_all_files --no-cache --fix"
# node scripts/eslint_all_files --no-cache --fix
# else
# desc="node scripts/eslint_all_files --no-cache"
# node scripts/eslint_all_files --no-cache
# fi
# eslint_exit=$?
# # re-enable "Exit immediately" mode
# set -e;
# check_for_changed_files "$desc" true
# if [[ "${eslint_exit}" != "0" ]]; then
# exit 1
# fi
# echo "eslint ✅"