-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(share-data): add format and lint targets for js #16529
Changes from 3 commits
1ca8c0a
2722d12
c1bdbbc
4ebe96b
ada91b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
**/node_modules/** | ||
**/coverage/** | ||
**/dist/**/* | ||
**/lib/**/* | ||
**/build/** | ||
**/venv/** | ||
.opentrons_config | ||
**/tsconfig*.json | ||
**/vite.config.mts | ||
# prettier | ||
**/package.json | ||
**/CHANGELOG.md | ||
|
||
# components library | ||
storybook-static | ||
|
||
# python projects and tools | ||
**/.mypy_cache/** | ||
**/.pytest_cache/** | ||
|
||
python/** |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,25 @@ tests ?= | |
cov_opts ?= --coverage=true | ||
test_opts ?= | ||
|
||
FORMAT_FILE_GLOB = "**/*.@(ts|tsx|js|json|md|yml)" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it doesn't hurt..? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, it won't cause any issue. |
||
|
||
# Top level targets | ||
|
||
.PHONY: all | ||
all: clean dist | ||
|
||
.PHONY: setup | ||
setup: setup-py setup-js | ||
setup: setup-py | ||
|
||
.PHONY: dist | ||
dist: dist-js dist-py | ||
dist: dist-py | ||
|
||
.PHONY: clean | ||
clean: clean-py | ||
|
||
.PHONY: format | ||
format: format-js format-py | ||
|
||
# JavaScript targets | ||
|
||
.PHONY: lib-js | ||
|
@@ -34,6 +39,14 @@ lib-js: | |
build-ts: | ||
yarn tsc --build --emitDeclarationOnly | ||
|
||
.PHONY: format-js | ||
format-js: | ||
yarn prettier --ignore-path .eslintignore --write $(FORMAT_FILE_GLOB) | ||
|
||
.PHONY: lint-js | ||
lint-js: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing eslint, |
||
yarn prettier --ignore-path .eslintignore --check $(FORMAT_FILE_GLOB) | ||
|
||
# Python targets | ||
|
||
.PHONY: setup-py | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may not need to add this, I think it will use the top level one directory up but try it out!