From 8b85bdc21eea801831a3cd765829a0e85a7b0264 Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Thu, 27 Feb 2020 13:58:25 +0200 Subject: [PATCH] fix commands in CONTRIBUTING.md --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0c39d58f2..5f7ae5d59 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ To get up and running, install the dependencies and run the tests: ```bash yarn -yarn lint +yarn lint:eslint yarn test ``` @@ -17,7 +17,7 @@ Here's what you need to know about the tests: - `tests/flow/` contains the Flow test suite, and is not supposed to be edited by hand. To update it, clone the Flow repo next to the Prettier repo and run: `node scripts/sync-flow-tests.js ../flow/tests/`. - If you would like to debug prettier locally, you can either debug it in node or the browser. The easiest way to debug it in the browser is to run the interactive `docs` REPL locally. The easiest way to debug it in node, is to create a local test file with some example code you want formatted and either run it in an editor like VS Code or run it directly via `./bin/prettier.js `. -Run `yarn lint --fix` to automatically format files. +Run `yarn lint:eslint --fix` to automatically format files. If you can, take look at [commands.md](commands.md) and check out [Wadler's paper](http://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) to understand how Prettier works.