From e0682a95583583b7a121d0350c7fd93af3676aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Hamburger=20Gr=C3=B8ngaard?= Date: Sat, 3 Jun 2017 20:49:15 +0200 Subject: [PATCH] Miscellaneous minor README fixes (#1943) * Refer to "line length" instead of "line width" - It's consistent with what it has been called in the section so far. * Add missing punctuation * Remove needless "just"s - It's less condescending to a reader who doesn't know how to "just" do these things. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8d023b8c4..dbfea4a35 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ actually the most troublesome. Individuals on teams will all format these differently according to their own rules and we lose the consistency we sought after. -Even if we disregard line widths, it's too easy to sneak in various +Even if we disregard line lengths, it's too easy to sneak in various styles of code in all other linters. The most strict linter I know happily lets all these styles happen: @@ -110,7 +110,7 @@ foo( ``` Prettier bans all custom styling[\*](#styling-footnote) by parsing it away and re-printing -the parsed AST with its own rules that take the maximum line width +the parsed AST with its own rules that take the maximum line length into account, wrapping code when necessary. \*_Well actually, some @@ -208,7 +208,7 @@ See https://github.com/okonet/lint-staged#configuration for more details about h ##### 2. [pre-commit](https://github.com/pre-commit/pre-commit) -Just copy the following config in your pre-commit config yaml file +Copy the following config in your pre-commit config yaml file: ```yaml @@ -220,11 +220,11 @@ Just copy the following config in your pre-commit config yaml file ``` -Find more info from [here](https://github.com/awebdeveloper/pre-commit-prettier) +Find more info from [here](https://github.com/awebdeveloper/pre-commit-prettier). ##### 3. bash script -Alternately you can just save this script as `.git/hooks/pre-commit` and give it execute permission: +Alternately you can save this script as `.git/hooks/pre-commit` and give it execute permission: ```bash #!/bin/sh