Skip to content
23 changes: 15 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,23 @@ repos:
target_chains/sui/vendor/|
patches/
)
# Hook to format many type of files in the repo
# including solidity contracts.
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
- repo: local
hooks:
- id: prettier
- id: pnpm-fix-format
name: Format files using pnpm fix:format
entry: bash -c 'cd $(git rev-parse --show-toplevel) && pnpm install --no-frozen-lockfile && pnpm turbo run fix:format --filter=!./packages/fonts'
language: node
language_version: "22.11.0"
pass_filenames: false
additional_dependencies:
- "[email protected]"
- "[email protected]"
exclude: target_chains/sui/vendor/
- "[email protected]"
- "[email protected]"
exclude: >
(?x)^(
target_chains/sui/vendor/|
patches/|
apps/hermes/server/proto/vendor/
)
- repo: local
hooks:
# Hooks for the remote executor
Expand Down
Loading