prettier/tests/if
jackyho112 302de60bdc Fix comment style when placed after if statement test (#2675)
* Fix comment style when placed after the test of an if statement

* Add tests

* Do a bit of refactoring

* Fix lint errors

* Handle skipping comments

* Account for multiple-line comments

* Add more tests

* Change function name

* Add more tests

* Refactor

* Add some comments

* Do away with getPreviousNonSpaceNonCommentCharacter

* Improve comment and code on handling if statement comments

* Refactor

* Fix a bug
2017-09-08 10:12:10 -07:00
..
__snapshots__ Fix comment style when placed after if statement test (#2675) 2017-09-08 10:12:10 -07:00
else.js Separate `if` and `else` groups (fixes #616) (#1032) 2017-03-17 14:02:35 -07:00
if_comments.js Fix comment style when placed after if statement test (#2675) 2017-09-08 10:12:10 -07:00
jsfmt.spec.js Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
trailing_comment.js Fix own line last if comment (#1219) 2017-04-12 17:26:44 -07:00