prettier/tests/flow_return_arrow
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
..
__snapshots__ Fix optional flow parenthesis (#1357) 2017-04-24 16:58:30 -04:00
issue-1249.js Fix optional flow parenthesis (#1357) 2017-04-24 16:58:30 -04:00
jsfmt.spec.js Add parens around arrow function return type (#1152) 2017-04-10 10:51:31 -07:00
parens.js Add parens around arrow function return type (#1152) 2017-04-10 10:51:31 -07:00