mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[CI] Parallelize eslint to speed it up (#136972)
This commit is contained in:
parent
5cc74443e6
commit
20dec08bf1
3 changed files with 10 additions and 6 deletions
|
@ -16,9 +16,9 @@ echo '--- Lint: eslint'
|
|||
# after possibly commiting fixed files to the repo
|
||||
set +e;
|
||||
if is_pr && ! is_auto_commit_disabled; then
|
||||
node scripts/eslint --no-cache --fix
|
||||
git ls-files | grep -E '\.(js|mjs|ts|tsx)$' | xargs -n 250 -P 6 node scripts/eslint --no-cache --fix
|
||||
else
|
||||
node scripts/eslint --no-cache
|
||||
git ls-files | grep -E '\.(js|mjs|ts|tsx)$' | xargs -n 250 -P 6 node scripts/eslint --no-cache
|
||||
fi
|
||||
|
||||
eslint_exit=$?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue