Skip to content

Commit de54b00

Browse files
author
Konrad Jamrozik
authored
Update ci-fix.md: clarify prettier TSG (#24174)
* Update ci-fix.md: clarify prettier TSG * Update ci-fix.md * Update ci-fix.md
1 parent 3cf2033 commit de54b00

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

documentation/ci-fix.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@ npm install
3131
# Compile TypeScript. Compilation will fail, this is expected. But it will compile 'scripts/prettier-swagger-plugin', which is what we need.
3232
npx tsc
3333
34-
# Run 'prettier --list-different' to understand what is the problem.
34+
# As of 5/25/2023, the prettier version should be 2.1.2
35+
npx prettier --version
36+
37+
# Run 'prettier --check' to verify the problems can be reproduced locally
38+
npx prettier --check **/*.json
39+
40+
# Run 'prettier --list-different' to understand which files have problems.
41+
# Note: there is no way to view the exact problems without actually changing the affected files. See https://github.com/prettier/prettier/issues/6069.
3542
npx prettier --list-different **/*.json
3643
37-
# Run 'prettier --write' to fix the problem.
44+
# Run 'prettier --write' to fix the problems.
3845
npx prettier --write **/*.json
3946
```
4047

0 commit comments

Comments
 (0)