Browse Source

[monorepo] fix prettier formatting (#32483)

* [monorepo] fix prettier formatting

* [monorepo] use a single prettier invocation for monorepo-check

GitOrigin-RevId: cf0cc2293b228be707ff23bdb3c5781c1f8d69f3
Jakob Ackermann 4 months ago
parent
commit
5ded3f5f90
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package.json

+ 2 - 0
package.json

@@ -56,6 +56,8 @@
     "format:pug:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check '**/*.pug'",
     "format:jenkins": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check '**/Jenkinsfile'",
     "format:jenkins:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check '**/Jenkinsfile'",
+    "format:monorepo-check": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check '**/Jenkinsfile' '**/*.md' '**/docker-compose.yml' '**/docker-compose.*.yml'",
+    "format:monorepo-check:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check '**/Jenkinsfile' '**/*.md' '**/docker-compose.yml' '**/docker-compose.*.yml'",
     "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint/ --max-warnings 0 --format unix .",
     "lint:fix": "eslint --cache --cache-location ./node_modules/.cache/eslint/ --fix .",
     "postinstall": "patch-package"