prettier/tests/shebang
Joseph Frazier 9d7515907e Pass entire text through formatWithShebang() to format() (#1718)
* Verify shebang tests against Babylon as well as Flow/Typescript

* Pass entire text through formatWithShebang() to format()

That way, we won't have to do any arithmetic on range and cursor
locations when there is a shebang. See here for details:

https://github.com/prettier/prettier/pull/1637#issuecomment-303846507

This required changing comment printing such that comments that are
actually shebangs are just ignored.

* Add curly brace after `if`

See https://github.com/prettier/prettier/pull/1718#discussion_r118382574
2017-05-24 18:59:25 -04:00
..
__snapshots__ Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
jsfmt.spec.js Pass entire text through formatWithShebang() to format() (#1718) 2017-05-24 18:59:25 -04:00
shebang-newline.js Add newline after shebang if necessary. (#215) 2017-01-17 17:16:40 -05:00
shebang.js Add test for shebang and move to index.js (#170) 2017-01-13 13:39:07 -05:00