Skip to content

Commit f485f47

Browse files
committed
Update CONTRIBUTING.md
added section with prettier setup instructions.
1 parent b213482 commit f485f47

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ If you want install to a different toolchain (if for instance your default is se
3333
rustup component add rustfmt-preview clippy-preview --toolchain stable
3434
```
3535

36+
We are using [Prettier](https://prettier.io) to check `.json|.graphql` files. To have it on your local machine you need to install [Node.js](https://nodejs.org) first.
37+
Our build is now using latest LTS version of Node.js. We're using `npm` and global install here:
38+
39+
```bash
40+
npm install --global prettier
41+
```
42+
3643
### Running
3744

3845
Verify you are using the stable channel (output of `rustc --version` does not contain "nightly" or "beta"). Then run fmt, clippy, and test as they are invoked in the `.travis.yml` file.

0 commit comments

Comments
 (0)