Skip to content

Commit

Permalink
refactor(monorepo): update lint-js command
Browse files Browse the repository at this point in the history
update lint-js command to speed up the linting process

close AUTH-
  • Loading branch information
koji committed Apr 23, 2024
1 parent 3b7058e commit 88b9444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,4 @@ opentrons-robot-app.tar.gz
# asdf versions file
.tool-versions
mock_dir
.eslintcache
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ lint-py: $(PYTHON_LINT_TARGETS)
%-py-lint:
$(MAKE) -C $* lint

.PHONY: lint-js
lint-js:
yarn eslint --quiet=$(quiet) ".*.@(js|ts|tsx)" "**/*.@(js|ts|tsx)"
yarn prettier --ignore-path .eslintignore --check $(FORMAT_FILE_GLOB)
@pids=""; \
yarn eslint --quiet=$(quiet) --ignore-pattern "node_modules/" --cache ".*.@(js|ts|tsx)" "**/*.@(js|ts|tsx)" & pids="$$pids $$!"; \
yarn prettier --ignore-path .eslintignore --check $(FORMAT_FILE_GLOB) & pids="$$pids $$!"; \
for pid in $$pids; do wait $$pid; done

.PHONY: lint-json
lint-json:
Expand Down

0 comments on commit 88b9444

Please sign in to comment.