From fef52000cc647a091526bebc63268b07c61d2aa8 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Fri, 30 Oct 2026 11:58:32 +0000 Subject: [PATCH] Add `prettier` as dev dependency --- package-lock.json | 7 ++++--- package.json | 2 ++ tsconfig.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index c1a68345a..b4196655b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,6 +62,7 @@ "glob": "^13.0.6", "globals": "^17.13.0", "nock": "^14.0.17", + "prettier": "^3.9.10", "sinon": "^22.1.0", "typescript": "^6.0.3", "typescript-eslint": "^8.72.0" @@ -8670,9 +8671,9 @@ } }, "node_modules/prettier": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.1.tgz", - "integrity": "sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==", + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.10.tgz", + "integrity": "sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==", "dev": true, "license": "MIT", "bin": { diff --git a/package.json b/package.json index cfd11dd5f..5e6f8e7d3 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "_build_comment": "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", "build": "./scripts/check-node-modules.sh && npm run transpile && node build.mjs", + "format-yaml": "prettier --write --parser yaml '**/*.{yml,yaml}'", "lint": "eslint --report-unused-disable-directives --max-warnings=0 .", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", @@ -70,6 +71,7 @@ "glob": "^13.0.6", "globals": "^17.13.0", "nock": "^14.0.17", + "prettier": "^3.9.10", "sinon": "^22.1.0", "typescript": "^6.0.3", "typescript-eslint": "^8.72.0" diff --git a/tsconfig.json b/tsconfig.json index 66545447c..57136385f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -37,5 +37,5 @@ "@octokit/core/dist-types/types": ["./node_modules/@octokit/core/dist-types/types.d.ts"] }, }, - "exclude": ["node_modules", "pr-checks"] + "exclude": ["node_modules", "pr-checks", "prettier.config.mts"] }