Add option and specs (no implementation yet)

These new snapshots are from https://github.com/prettier/prettier/pull/2676
This commit is contained in:
Stephen Scott authored and Suchipi Izumi committed 2017-11-27 22:26:58 -07:00
1 parent 172d34e43d
commit 9a1e408a3f
11 files changed
+693 -2

No files matched your search

+13
View File
@@ -96,6 +96,19 @@ Put the `>` of a multi-line JSX element at the end of the last line instead of b
| ------- | ------------------------- | ---------------------------- |
| `false` | `--jsx-bracket-same-line` | `jsxBracketSameLine: <bool>` |
# Arrow Function Parentheses
Include parentheses around a sole arrow function parameter.
Valid options:
* `"avoid"` - Omit parens when possible. Example: `x => x`
* `"always"` - Always include parens. Example: `(x) => x`
| Default | CLI Override | API Override |
| --------- | --------------------------------------------------------- | ------------------------------------------------------- |
| `"avoid"` | <code>--arrow-function-parens <avoid&#124;always></code> | <code>arrowFunctionParentheses: "<avoid&#124;always>"</code> |
## Range
Format only a segment of a file.