prettier/tests/ternaries
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
binary.js Handle conditions inside of a ternary (#2228) 2017-06-21 18:17:30 -07:00
indent.js Do not indent nested ternaries (#1822) 2017-05-30 10:08:06 -07:00
jsfmt.spec.js Run Prettier on all source files (#1648) 2017-05-21 08:13:11 -07:00
parenthesis.js Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450) 2017-05-01 14:32:52 -07:00
test.js Indent ternaries (#484) 2017-01-26 11:58:40 -08:00