Skip to content
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: add git hooks to lint on commit #1341

Merged
merged 6 commits into from
Dec 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: in Makefile, run lint tasks without Docker
  • Loading branch information
paulschreiber committed Dec 4, 2023
commit 1be8d04fa27a3c4e3ff15b7ae0df48e113c80b4f
28 changes: 7 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,25 @@ build:
"npm run build"

format:
./scripts/docker/run.sh \
"--name terraso_web_client_format" \
"npm run format-js && npm run format-css"
npm run format-js && npm run format-css

lint:
./scripts/docker/run.sh \
"--name terraso_web_client_lint" \
"npm run lint-js && npm run lint-css"
npm run lint-js && npm run lint-css && npm run check-ts

format-css:
./scripts/docker/run.sh \
"--name terraso_web_client_format" \
"npm run format-css"
npm run format-css

format-js:
./scripts/docker/run.sh \
"--name terraso_web_client_format" \
"npm run format-js"
npm run format-js

lint-js:
./scripts/docker/run.sh \
"--name terraso_web_client_lint" \
"npm run lint-js"
npm run lint-js

lint-css:
./scripts/docker/run.sh \
"--name terraso_web_client_lint" \
"npm run lint-css"
npm run lint-css

check-ts:
./scripts/docker/run.sh \
"--name terraso_web_client_lint" \
"npm run check-ts"
npm run check-ts

test:
./scripts/docker/run.sh \
Expand Down