From eb9ba7466533e841665397063d6a2d0f22202ce5 Mon Sep 17 00:00:00 2001 From: Ryan Castner Date: Fri, 2 Jun 2017 09:48:29 -0400 Subject: [PATCH] Update README.md (#1859) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8db8f057..8d023b8c 100644 --- a/README.md +++ b/README.md @@ -275,7 +275,7 @@ Prettier ships with a handful of customizable format options, usable in both the | **Tab Width** - Specify the number of spaces per indentation-level. | `2` | `--tab-width ` | `tabWidth: ` | | **Tabs** - Indent lines with tabs instead of spaces. | `false` | `--use-tabs` | `useTabs: ` | | **Semicolons** - Print semicolons at the ends of statements.

Valid options:
- `true` - add a semicolon at the end of every statement
- `false` - only add semicolons at the beginning of lines that may introduce ASI failures | `true` | `--no-semi` | `semi: ` | -| **Quotes** - Use single quotes instead of double quotes. | `false` | `--single-quote` | `singleQuote: ` | +| **Quotes** - Use single quotes instead of double quotes.

Note: Quotes in JSX will always be double and ignore this setting.
| `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). This requires node 8 or a [transform](https://babeljs.io/docs/plugins/syntax-trailing-function-commas/). | `"none"` | --trailing-comma | trailingComma: "" | | **Bracket Spacing** - Print spaces between brackets in object literals.

Valid options:
- `true` - Example: `{ foo: bar }`
- `false` - Example: `{foo: bar}` | `true` | `--no-bracket-spacing` | `bracketSpacing: ` | | **JSX Brackets on Same Line** - Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line | `false` | `--jsx-bracket-same-line` | `jsxBracketSameLine: ` |