Skip to content

Commit

Permalink
Update ci-fix.md: clarify prettier TSG (#24174)
Browse files Browse the repository at this point in the history
* Update ci-fix.md: clarify prettier TSG

* Update ci-fix.md

* Update ci-fix.md
  • Loading branch information
Konrad Jamrozik authored May 25, 2023
1 parent 3cf2033 commit de54b00
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions documentation/ci-fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ npm install
# Compile TypeScript. Compilation will fail, this is expected. But it will compile 'scripts/prettier-swagger-plugin', which is what we need.
npx tsc
# Run 'prettier --list-different' to understand what is the problem.
# As of 5/25/2023, the prettier version should be 2.1.2
npx prettier --version
# Run 'prettier --check' to verify the problems can be reproduced locally
npx prettier --check **/*.json
# Run 'prettier --list-different' to understand which files have problems.
# Note: there is no way to view the exact problems without actually changing the affected files. See https://github.com/prettier/prettier/issues/6069.
npx prettier --list-different **/*.json
# Run 'prettier --write' to fix the problem.
# Run 'prettier --write' to fix the problems.
npx prettier --write **/*.json
```

Expand Down

0 comments on commit de54b00

Please sign in to comment.