prettier/tests/template
Joseph Frazier d7ec9dc706 Don't let trailing template literal comments escape (#1580)
* Don't let trailing template literal comments escape

This might not be the best-looking solution, but it's a start, and it
passes `AST_COMPARE=1 npm test`

Fixes https://github.com/prettier/prettier/issues/1559

* Add trailing space when changing line comment to block

* Be more discerning about template literal comment placement

Try to maintain the previous behavior if possible.

* Revert "Add trailing space when changing line comment to block"

This reverts commit 1eb42c24819a296c93a79b92a358d30a2aacc16c.
2017-05-10 21:07:55 -07:00
..
__snapshots__ Don't let trailing template literal comments escape (#1580) 2017-05-10 21:07:55 -07:00
arrow.js Inline template literals as arrow body (#1485) 2017-05-02 09:17:20 -07:00
call.js [RFC] Do not indent calls with a single template literal argument (#873) 2017-05-01 14:27:00 -07:00
comment.js Fix template literal comments (#1296) 2017-04-17 11:35:12 -04:00
faulty-locations.js Remove faulty location check on template literals that throws in Nuclide (#218) 2017-01-15 23:46:05 -05:00
graphql.js Proper indentation for template literals (#1385) 2017-05-01 14:28:11 -07:00
inline.js Respect template inline-ness (#1497) 2017-05-03 14:35:58 -07:00
jsfmt.spec.js Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
parenthesis.js Fix various parenthesis issues on the left side of template (#404) 2017-01-22 15:43:57 -08:00