Wei-Wei Wu
91c20f7fbe
Rename "babylon" with "babel" ( #5647 )
2018-12-27 21:05:19 +08:00
Ika
4af3dd4b07
test: improve snapshots ( #5521 )
...
- before
```
${input}${"~".repeat(printWidth)}
${output}
```
- after
```
===options===
${options}
${" ".repeat(printWidth)}| printWidth
====input====
${input}
===output====
${output}
=============
```
2018-11-25 16:21:14 +08:00
Simon Lydell
87e109f884
Escape not just backticks but `${` as well in graphql tags ( #5137 )
...
* Escape not just backticks but `${` as well in graphql tags
Fixes #4974 .
* Also escape backslashes correctly in graphql tags
2018-09-29 09:42:44 +02:00
Simen Bekkhus
51b7c02e12
Upgrade jest to 22 ( #4782 )
...
* chore: upgrade Jest
* chore: update snapshots
* chore: lock down babel dependency using invalid syntax
* 2 args to test.skip
* use jest 22 for now
* Revert "2 args to test.skip"
This reverts commit 691fdc3f99e320f2303958f2b503f7b4c93fa455.
* remove snapshot name from matcher
* fix standalone tests skips
2018-07-03 03:06:29 -03:00
Ika
b55997eb3d
fix(multiparser): no additional trailing newline for graphql in js ( #4616 )
...
Fixes #4615
The root cause is the output doc from graphql printer does not match the desired input from `stripTrailingHardline`.
a9b21a01e2/src/doc/doc-utils.js (L167-L180)
2018-06-01 00:38:39 +08:00
tjallingt
8cf591447c
Added support for the graph ql comment tag ( #4395 )
...
* Added support for the graph ql comment tag
As described in the issue https://github.com/prettier/prettier/issues/4360
Prettier still adds a space inbetween the comment tag and the template literal.
* Added comment explaining the random spaces around GraphQL
* Fixed failing AST_COMPARE tests
2018-05-09 01:52:35 -06:00
Lucas Duailibe
a92838facf
Prevent formatting GraphQL embedded in JS if it contains invalid escape sequences ( #4278 )
2018-04-07 12:03:56 -03:00
Lucas Duailibe
2e73164b81
Fix embedded GraphQL in JS with backticks ( #4265 )
2018-04-05 17:52:09 -03:00
Jimmy Jia
cfb8987ecd
Revert Relay Classic non-support ( #3606 )
...
This reverts commit e8551b994d313ea023855a790c87acc4833150f9.
2017-12-29 21:14:08 +01:00
Jimmy Jia
bbfc450cd2
Support Relay Classic ( #3595 )
2017-12-28 14:20:25 -03:00
Simon Lydell
d80728b5ff
Support toplevel interpolations in graphql tags ( #3370 )
...
* Refactor multiparser
* Add support for toplevel interpolations in graphql tags
* Update snapshots
* Fix JSX-in-markdown special-case
2017-12-03 12:31:23 +11:00
Lucas Duailibe
f119d4a90f
Change run_spec to have explicit parser list ( #3356 )
2017-11-30 03:31:52 -03:00
Lucas Duailibe
ece764a049
Preserve intentional new lines in GraphQL ( #3252 )
...
* Preserve intentional new lines in GraphQL
* Move function to bottom
* Rename arg
* Refactor
* Add comments in tests and support for arguments
2017-11-12 02:10:54 -02:00
Lucas Duailibe
f82fcbc98e
Prevent formatting GQL template literals with expressions ( #2975 )
...
* Prevent formatting GQL template literals with expressions
* Remove unnecessary check
* Change quasis check to expression check
2017-10-05 11:23:57 +11:00
Lucas Azzola
3f74c45b91
Support graphql(schema, `query`) ( #2781 )
2017-09-11 20:18:11 +02:00
adanoff
44b5da8ade
Add `graphql.experimental` parsing for react-relay ( #2116 )
2017-06-12 17:16:17 -07:00
Lucas Azzola
b4f0ff346e
feat(mutliparser): add react-relay and graphql-tag parsing ( #2092 )
2017-06-10 08:59:27 -07:00