Skip to content

Commit

Permalink
Lint on commit (Lightprotocol#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin authored Oct 9, 2023
1 parent ccc8043 commit d00abed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm -r format
./scripts/format.sh
2 changes: 2 additions & 0 deletions scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
set -e

npx nx run-many --target=format --all
npx nx run-many --target=lint:fix --all

cd system-programs && cargo fmt --all && cargo clippy --all -- -A clippy::result_large_err -D warnings && cd -;
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

npx nx run-many --target=lint:fix --all
npx nx run-many --target=format:check --all

npx nx run-many --target=lint --all

Expand Down

0 comments on commit d00abed

Please sign in to comment.