Add option and specs (no implementation yet)
These new snapshots are from https://github.com/prettier/prettier/pull/2676
This commit is contained in:
1 parent
172d34e43d
commit
9a1e408a3f
11 files changed
+693
-2
No files matched your search
@@ -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|always></code> | <code>arrowFunctionParentheses: "<avoid|always>"</code> |
|
||||
|
||||
## Range
|
||||
|
||||
Format only a segment of a file.
|
||||
|
||||
Reference in new issue
Block a user