diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19ed0e39df..c1353d3b56 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: - - "prettier@2.7.1" - - "prettier-plugin-solidity@1.0.0-rc.1" - exclude: target_chains/sui/vendor/ + - "pnpm@9.15.4" + - "turbo@2.2.3" + exclude: > + (?x)^( + target_chains/sui/vendor/| + patches/| + apps/hermes/server/proto/vendor/ + ) - repo: local hooks: # Hooks for the remote executor