prettier/tests/flow/union_new
Christopher Chedeau dc0fbf7822 Special logic for flow intersection (#1018)
We started using the same logic for union and intersection but then added a special case for `a & {}`. It turns out that they should be handled completely differently in practice.

The heuristic i'm using is if you go from object to non-object or vis-versa, then inline, otherwise go to the next line and indent (like &&).

Fixes #864
Fixes #1017
2017-03-22 10:01:34 -07:00
..
__snapshots__ Special logic for flow intersection (#1018) 2017-03-22 10:01:34 -07:00
lib Revert "Improve snapshot naming" (#1070) 2017-03-21 17:38:28 -07:00
issue-815.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-824-helper.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-824.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1349.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1371.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1455-helper.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1455.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1462-i.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1462-ii.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1664.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-1759.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
issue-2232.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
jsfmt.spec.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test3.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test4.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test5.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test6.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test7.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test8.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test9.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test10.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test11.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test12.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test13.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test14.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test15.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test16.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test17.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test18.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test19.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test20.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test21.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test22.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test23.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test24.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test25.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test26.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test27.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test29.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test30-helper.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test30.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test31.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
test32.js Move tests around (#454) 2017-01-24 14:35:37 -08:00