소스 검색

Pin the version of prettier used by pre-commit (#5463)

Without this, `npx prettier` can end up running some other version.
Chandler Carruth 11 달 전
부모
커밋
ad7ea48acd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .pre-commit-config.yaml

+ 1 - 1
.pre-commit-config.yaml

@@ -55,7 +55,7 @@ repos:
         language: node
         additional_dependencies: ['prettier@3.3.3']
         types_or: [html, javascript, json, markdown, yaml]
-        entry: npx prettier --write --log-level=warn
+        entry: npx prettier@3.3.3 --write --log-level=warn
   - repo: local
     hooks:
       - id: buildifier