From 801519ec79ecaa79e012226ff6b888ea75ba7449 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sun, 21 May 2017 13:17:02 -0700 Subject: [PATCH] Warn against > 80 columns --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b50dc31b8..76db19ea4 100644 --- a/README.md +++ b/README.md @@ -254,7 +254,7 @@ Prettier ships with a handful of customizable format options, usable in both the | Option | Default | CLI override | API override | | ------------- | ------------- | ------------- | ------------- | | **Tabs** - Indent lines with tabs instead of spaces. | `false` | `--use-tabs` | `useTabs: ` | -| **Print Width** - Specify the length of line that the printer will wrap on. | `80` | `--print-width ` | `printWidth: ` +| **Print Width** - Specify the length of line that the printer will wrap on.

We strongly recommend against using more than 80 columns. Prettier works by craming as much content as possible until it reaches the limit, which happens to work well for 80 columns but makes lines that are very crowded. When a bigger column count is used in styleguides, it usually means that code is allowed to go beyond 80 columns, but not to make every single line go there, like prettier would do. | `80` | `--print-width ` | `printWidth: ` | **Tab Width** - Specify the number of spaces per indentation-level. | `2` | `--tab-width ` | `tabWidth: ` | | **Quotes** - Use single quotes instead of double quotes. | `false` | `--single-quote` | `singleQuote: ` | | **Trailing Commas** - Print trailing commas wherever possible.

Valid options:
- `"none"` - no trailing commas
- `"es5"` - trailing commas where valid in ES5 (objects, arrays, etc)
- `"all"` - trailing commas wherever possible (function arguments) | `"none"` | --trailing-comma | trailingComma: "" |