Skip to content

Commit

Permalink
refactor(monorepo): update lint-js command (#14977)
Browse files Browse the repository at this point in the history
* refactor(monorepo): update lint-js command
  • Loading branch information
koji authored Apr 25, 2024
1 parent ee6e9fe commit b2644e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,17 @@ lint-py: $(PYTHON_LINT_TARGETS)
$(MAKE) -C $* lint

.PHONY: lint-js
lint-js:
yarn eslint --quiet=$(quiet) ".*.@(js|ts|tsx)" "**/*.@(js|ts|tsx)"
lint-js: lint-js-eslint lint-js-prettier

.PHONY: lint-js-eslint
lint-js-eslint:
yarn eslint --quiet=$(quiet) --ignore-pattern "node_modules/" --cache ".*.@(js|ts|tsx)" "**/*.@(js|ts|tsx)"

.PHONY: lint-js-prettier
lint-js-prettier:
yarn prettier --ignore-path .eslintignore --check $(FORMAT_FILE_GLOB)


.PHONY: lint-json
lint-json:
yarn eslint --max-warnings 0 --ext .json .
Expand Down

0 comments on commit b2644e5

Please sign in to comment.