prettier/tests/flow/union_new
Christopher Chedeau 8bc3c617a0 Preserve next line with trailing comment (#535)
It turns that our hasNextLine logic needs to be tuned to skip all the trailing comments. The code is not pretty but it does the job. It looks like it fixes a bunch of things in the test cases :)

I made sure that nested inline comments are NOT valid JavaScript

```js
/* /* a */ */
Uncaught SyntaxError: Unexpected token *
```

so it is okay to do a dumb search for */ when you are in a comment
2017-01-31 11:27:44 -05:00
..
__snapshots__ Preserve next line with trailing comment (#535) 2017-01-31 11:27:44 -05:00
lib [RFC] Keep expanded objects expanded (#495) 2017-01-30 09:08:55 -08: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