Parcourir la source

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

Without this, `npx prettier` can end up running some other version.
Chandler Carruth il y a 11 mois
Parent
commit
ad7ea48acd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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