prettier/src
Christopher Chedeau a7319dbbbb Fix optional flow parenthesis (#1357)
In #1251, we now have a proper whitelist of all the types that should have parenthesis. Turns out, it included NullableTypeAnnotation which is `?a`. For `?a => void` this wasn't needed but for `(?(a => b)) => c` it was! It's better to always put it anyway if it's not just a simple literal.

I've added tests for all the combinations I could think of, so we'll catch regressions if they happen.

Fixes #1353
2017-04-24 16:58:30 -04:00
..
comments.js Don't inline paren at right of arguments (#1345) 2017-04-19 10:44:00 -07:00
deprecated.js Run prettier on 0.13.0 (#497) 2017-01-28 07:50:22 -08:00
doc-builders.js Refactored option to indent with tabs (#1026) 2017-04-06 22:49:37 -04:00
doc-debug.js Format the codebase using the pre-1.0 release (#1194) 2017-04-12 10:16:11 -07:00
doc-printer.js Remove trailing whitespace (#1259) 2017-04-13 18:31:49 -07:00
doc-utils.js Bail when traversing === groups (#1294) 2017-04-18 08:39:47 -07:00
fast-path.js Add parentheses for assignment as body of arrow (#1326) 2017-04-18 13:28:33 -07:00
options.js Enable no-semi mode and protect against ASI failures (#1129) 2017-04-11 13:50:47 -07:00
parser.js Format the codebase using the pre-1.0 release (#1194) 2017-04-12 10:16:11 -07:00
printer.js Fix optional flow parenthesis (#1357) 2017-04-24 16:58:30 -04:00
util.js Fix isPreviousLineEmpry on Windows (#1263) 2017-04-14 16:02:19 -07:00