Skip to content

Commit b772d5f

Browse files
petertsengiHiD
authored andcommitted
CONTRIBUTING: mention format-array
pull request: #1968
1 parent 2cb7634 commit b772d5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,12 @@ We are maintaining this section, since many open issues link to it.
304304

305305
## Formatting
306306

307-
This repository uses [prettier][prettier] to automatically format its JSON files.
307+
This repository uses [prettier][prettier] and a [custom array formatter][format-array] to automatically format its JSON files.
308308
If you've added or modified a JSON file, you can format it using:
309309

310310
```shell
311311
yarn install
312-
yarn format-json
312+
yarn format-json && ruby bin/format-array.rb
313313
```
314314

315315
Note: if you use VS Code as your editor, you can install the [prettier plugin][prettier-vs-code] to automatically handle formatting for you.
@@ -336,4 +336,5 @@ Note: if you use VS Code as your editor, you can install the [prettier plugin][p
336336
[improve-exercise-metadata]: https://github.com/exercism/legacy-docs/blob/main/you-can-help/improve-exercise-metadata.md
337337
[legacy-docs]: https://github.com/exercism/legacy-docs
338338
[prettier]: https://prettier.io/
339+
[format-array]: https://github.com/exercism/problem-specifications/blob/main/bin/format-array.rb
339340
[prettier-vs-code]: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

0 commit comments

Comments
 (0)