ソースを参照

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