Skip to content

Commit 4795ac5

Browse files
committed
fix: align prettier v2 -> v3 config to match pre-release workflow
Root cause of recurring lint failures on release PRs: the pre-release workflow installed latest prettier (v3.x) to format docs/history.md, but the pre-commit hook pinned mirrors-prettier at v2.5.1. - Bump mirrors-prettier from v2.5.1 to v3.1.0 in .pre-commit-config.yaml - Pin workflow to `prettier@3` to prevent future drift - Add vendored assets (docs/diagram/, minified files) and Jinja templates to .prettierignore One-time reformatting of existing files deferred to a separate PR.
1 parent 11cc3ac commit 4795ac5

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
python utility/update-history.py
5555
- name: Lint history
5656
run: |
57-
npm install prettier
57+
npm install prettier@3
5858
npx prettier --write docs/history.md
5959
- name: Commit changes
6060
run: |

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: isort
2424
args: ["--profile", "black", "--filter-files"]
2525
- repo: https://github.com/pre-commit/mirrors-prettier
26-
rev: v2.5.1
26+
rev: v3.1.0
2727
hooks:
2828
- id: prettier
2929
- repo: local

.prettierignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
Test*.yaml
1+
Test*.yaml
2+
docs/diagram/
3+
**/*.min.js
4+
**/*.min.css
5+
cumulusci/files/templates/

0 commit comments

Comments
 (0)