File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,17 @@ npm install
31
31
# Compile TypeScript. Compilation will fail, this is expected. But it will compile 'scripts/prettier-swagger-plugin', which is what we need.
32
32
npx tsc
33
33
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.
35
42
npx prettier --list-different **/*.json
36
43
37
- # Run 'prettier --write' to fix the problem .
44
+ # Run 'prettier --write' to fix the problems .
38
45
npx prettier --write **/*.json
39
46
```
40
47
You can’t perform that action at this time.
0 commit comments