prettier/tests
Christopher Chedeau e0eb438e7b Add newline for bracket-less arrow functions that return calls (#927)
I've tried a lot of places where to fix this and this is the only one that gives correct results. This is likely not exhaustive but works for that use case. It's been reported twice in issues and I've seen it happen a few other times so we probably want to get it fixed.

Fixes #922
Fixes #797
2017-04-11 08:50:49 -07:00
..
array_spread Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
arrays Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
arrow-call Add newline for bracket-less arrow functions that return calls (#927) 2017-04-11 08:50:49 -07:00
arrows Add newline for bracket-less arrow functions that return calls (#927) 2017-04-11 08:50:49 -07:00
assignment Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
assignment_comments Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
assignment_expression Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
async Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
binary-expressions Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
binary_math Add parenthesis for binary operators (#1153) 2017-04-10 18:31:52 -07:00
bracketSpacing Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
break-calls Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
class_comment Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
class_extends Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
classes Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
comments Fix comment detection before comma (#1127) 2017-04-10 11:03:35 -07:00
computed_props Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
conditional Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
decorators Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
directives Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
do Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
dynamic_import Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
empty_paren_comment Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
empty_statement Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
es6modules Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
exact_object Fix printing of exact object flow type annotations (#1114) 2017-04-03 10:24:36 -07:00
export Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
export_default Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
export_extension Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
exports Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
expression_statement Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
first_argument_expansion Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
flow Improve printing of chained interesctions (#1155) 2017-04-10 10:50:38 -07:00
flow_array_comments Sync the Flow tests (#1163) 2017-04-08 07:52:38 -07:00
flow_array_union Sync the Flow tests (#1163) 2017-04-08 07:52:38 -07:00
flow_comments Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
flow_function_parentheses Sync the Flow tests (#1163) 2017-04-08 07:52:38 -07:00
flow_generic Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
flow_import_type_specifier Sync the Flow tests (#1163) 2017-04-08 07:52:38 -07:00
flow_method Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
flow_object_comment Fix tests 2017-03-22 10:20:42 -07:00
flow_return_arrow Add parens around arrow function return type (#1152) 2017-04-10 10:51:31 -07:00
for Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
function Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
function_single_destructuring Hug on single object destructuring function (#1022) 2017-03-22 09:58:33 -07:00
if Fix last comment of an if test (#1042) 2017-04-10 11:05:10 -07:00
ignore "// prettier-ignore" position within comments doesn't matter (#1126) 2017-04-05 10:51:20 -07:00
import Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
interface Ability for interface to break (#1060) 2017-04-04 14:25:17 -07:00
intersection Improve printing of chained interesctions (#1155) 2017-04-10 10:50:38 -07:00
jsx Fix ampersand in jsx href and src (#1056) 2017-04-08 07:55:50 -07:00
jsx-multiline-assign Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
jsx-newlines Properly handle \r\n in JSXText (#1170) 2017-04-09 16:37:54 -07:00
jsx-significant-space Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
jsx-split-attrs Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
jsx-stateless-arrow-fn Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
jsx_escape Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
jsx_last_line Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
label Stabilize label comments (#1179) 2017-04-10 11:22:35 -07:00
last_argument_expansion Add newline for bracket-less arrow functions that return calls (#927) 2017-04-11 08:50:49 -07:00
line Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
line_suffix_boundary Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
literal Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
member Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
method-chain Add newline for bracket-less arrow functions that return calls (#927) 2017-04-11 08:50:49 -07:00
new_expression Fix parenthesis when call inside of new (#1169) 2017-04-10 10:49:13 -07:00
newline Handle unconventional newlines (#1050) 2017-04-05 10:54:39 -07:00
object-prop-break-in Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
object_colon_bug Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
object_property_comment Print comment after key (#1131) 2017-04-05 13:10:10 -07:00
objects Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
optional-type-name Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
preserve_line Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
quotes Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
require Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
rest Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
return Print return dangling comment (#1178) 2017-04-10 10:46:25 -07:00
shebang Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
strings Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
switch Fix switch new lines (#1156) 2017-04-10 10:50:02 -07:00
tabWith Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
template Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
ternaries Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
test_declarations Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
trailing_comma Fix last argument comment for function declaration (#1176) 2017-04-10 10:55:29 -07:00
trailing_whitespace Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
try Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
typescript/conformance/types Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
unary Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
unary_expression Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
unicode Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
union_intersection Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
update_expression Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
variable_declarator Allow to break after = for strings (#1142) 2017-04-07 10:51:02 -07:00
while Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
windows Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
yield Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00