Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-11-24 08:48:01 +0300
committerStan Hu <stanhu@gmail.com>2018-11-24 09:02:52 +0300
commitbfaf72e008262e4bdba6ec75986f341a29fcea43 (patch)
tree5fc7cce7b4c5469b1971c01d5a15bfa4c4629b38 /doc/development/new_fe_guide
parent0a42c7cbaae51466a67a4011859726c29bc24da4 (diff)
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`.
Diffstat (limited to 'doc/development/new_fe_guide')
-rw-r--r--doc/development/new_fe_guide/style/prettier.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/new_fe_guide/style/prettier.md b/doc/development/new_fe_guide/style/prettier.md
index 6395af6f815..baaea67d38b 100644
--- a/doc/development/new_fe_guide/style/prettier.md
+++ b/doc/development/new_fe_guide/style/prettier.md
@@ -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.