Fix documentation on using prettier for a specific directory
If the `check` parameter is used, the `allFiles` parameter is `false`, which causes the prettier.js script only to process staged files. The correct parameters are `check-all` and `save-all`.
This commit is contained in:
parent
0a42c7cbaa
commit
bfaf72e008
1 changed files with 2 additions and 2 deletions
|
@ -47,13 +47,13 @@ The source of these Yarn scripts can be found in `/scripts/frontend/prettier.js`
|
|||
### Scripts during Conversion period
|
||||
|
||||
```
|
||||
node ./scripts/frontend/prettier.js check ./vendor/
|
||||
node ./scripts/frontend/prettier.js check-all ./vendor/
|
||||
```
|
||||
|
||||
This will go over all files in a specific folder check it.
|
||||
|
||||
```
|
||||
node ./scripts/frontend/prettier.js save ./vendor/
|
||||
node ./scripts/frontend/prettier.js save-all ./vendor/
|
||||
```
|
||||
|
||||
This will go over all files in a specific folder and save it.
|
||||
|
|
Loading…
Reference in a new issue