diff --git a/README.md b/README.md index edef5d6f..2092515e 100644 --- a/README.md +++ b/README.md @@ -247,11 +247,12 @@ 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. | `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: "" | -| **Bracket Spacing** - Do not print spaces between brackets.

If true, puts 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: ` | +| **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: "" | +| **Bracket Spacing** - Do not print spaces between brackets in object literals. | `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: ` | | **Parser** - Specify which parse to use. | `babylon` | --parser | parser: "" | | **Semicolons** - Do not print semicolons, except at the beginning of lines which may need them.

Valid options:
- `true` - add a semicolon at the end of every line
- `false` - only add semicolons at the beginning of lines that may introduce ASI failures | `true` | `--no-semi` | `semi: ` |