prettier/tests/jsx
Stephen Scott 3ed2bae1b4 Improve JSX ternary formatting
* Now JSX-mode ternaries only break if they need to. 
* Only the outermost ternary in a chain of JSX-mode ternaries will become a group.
* We don't wrap null in parens when breaking JSX-mode ternaries.

This commit also improves the test coverage and explanation in tests/jsx/conditional-expression.js.
2017-07-13 10:21:58 -06:00
..
__snapshots__ Improve JSX ternary formatting 2017-07-13 10:21:58 -06:00
conditional-expression.js Improve JSX ternary formatting 2017-07-13 10:21:58 -06:00
expression.js [JSX] Don't wrap JSX Elements in parentheses if they are inside JSX Expression Containers (#845) 2017-03-01 12:05:57 -08:00
flow_fix_me.js Put JSX comments inside of the parenthesis (#1712) 2017-05-24 13:19:47 -07:00
html_escape.js Fix ampersand in jsx href and src (#1056) 2017-04-08 07:55:50 -07:00
hug.js Inline BinaryExpressions inside JSXExpression (#965) 2017-03-09 07:59:53 -08:00
jsfmt.spec.js Fix ampersand in jsx href and src (#1056) 2017-04-08 07:55:50 -07:00
logical-expression.js Improve JSX ternary formatting 2017-07-13 10:21:58 -06:00
object-property.js 565 jsx parentheses fix (#580) 2017-02-02 16:25:34 -08:00
open-break.js [JSX] Break if opening element breaks (#942) 2017-03-07 17:19:05 -08:00
parens.js Fix ampersand in jsx href and src (#1056) 2017-04-08 07:55:50 -07:00
quotes.js Always use double quotes for JSX and properly escape 2017-01-11 11:40:24 -08:00
return-statement.js Improve JSX Formatting 2017-07-13 10:20:42 -06:00
spacing.js Upgrade flow parser to 0.45 (#1447) 2017-04-27 14:59:18 -07:00