Ika
ae6abe4d8c
chore: bump own prettier to 1.13.4
2018-06-01 20:02:28 +08:00
Ika
dfefe259db
chore(release): 1.13.4
2018-06-01 19:59:12 +08: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
Ika
e74e6565b4
fix(markdown): respect blank line between block htmls ( #4609 )
...
Fixes #4605
The AST here is actually two `html`s and it did follow the [CommonMark spec](https://spec.commonmark.org/0.28/#html-blocks ), so I ended up with respecting the blank line between block `html`s.
2018-06-01 00:33:37 +08:00
Ika
a9b21a01e2
docs(changelog): fix a typo in the url
2018-05-31 09:58:21 +08:00
Evilebot Tnawi
9387e9d833
fix: comment type for scss ( #4598 )
2018-05-30 23:22:18 +03:00
Lucas Duailibe
16da7d3a76
Bump own Prettier to 1.13.3
2018-05-30 15:04:20 -03:00
Lucas Duailibe
3d429dbade
1.13.3
2018-05-30 14:09:33 -03:00
Ika
75e86b9e6b
fix(cli): no regression for --debug-check + --list-different ( #4600 )
2018-05-31 00:42:26 +08:00
Ika
8abbc5d4b0
fix(javascript): regression for `hasOwnProperty` ( #4603 )
2018-05-31 00:39:39 +08:00
Jimmy Jia
dc5de053c4
fix: comment around color adjusters ( #4595 )
2018-05-29 21:03:09 +03:00
Lucas Duailibe
8a67378f97
Nicer logging on build script ( #4590 )
2018-05-29 14:59:57 -03:00
Ika
71e12ef321
docs: replace NO-BREAK SPACE with the normal one ( #4592 )
2018-05-29 23:01:22 +08:00
Ika
e9b7c7ff9b
chore: fix 2 TODOs ( #4591 )
2018-05-29 22:05:25 +08:00
Lucas Duailibe
68f594414e
Bump own Prettier to 1.13.2
2018-05-29 09:49:47 -03:00
Evilebot Tnawi
3d60871458
fix: output color adjusters ( #4494 )
2018-05-29 15:24:38 +03:00
Suchipi Izumi
c7d40b0ed9
1.13.2
2018-05-29 00:23:19 -06:00
Suchipi Izumi
89c84e5ee0
Fix some build script issues
...
* Copy README to dist
* Fix strings in prepublishOnly
2018-05-29 00:22:59 -06:00
Suchipi Izumi
fea34d4e70
Bump version to 1.13.1
2018-05-29 00:11:31 -06:00
Lucas Duailibe
1350edc5a6
Revert no parser error for API ( #4587 )
...
* Revert no parser error for API
* use warn
2018-05-28 23:43:44 -06:00
Ika
11275bfa9d
docs: fix linting
2018-05-29 10:16:07 +08:00
Lucas Duailibe
b8ded70848
Handle comments in assignments before template literals ( #4580 )
...
Closes #4560
2018-05-29 00:08:18 +10:00
さくら
d0fd41a10e
docs(misc): add `prettier-chrome` project ( #4581 )
...
An extension that can be formatted using Prettier in Chrome
2018-05-28 10:01:03 -03:00
Lucas Azzola
19cdd5fde2
Get tests passing on Windows ( #4579 )
...
Closes #4564
2018-05-28 21:46:55 +10:00
Jed Fox
1669a7b38b
Redirect the broken 1.13 blog link to the correct one ( #4570 )
...
* Redirect the broken 1.13 blog link to the correct one
https://twitter.com/prettiercode/status/1000819715374272515
* Redirect the broken 1.13 blog link to the correct one
https://twitter.com/prettiercode/status/1000819715374272515
* Revert "Rename 2018-05-27-1.13.0.md to 2018-05-23-1.13.0.md"
This reverts commit bce668af05
.
* Fix redirect target
2018-05-28 07:24:09 -04:00
Berton Zhu
bfa191f07c
Update example code in Doc to v1.13 ( #4578 )
2018-05-28 20:12:22 +10:00
Suchipi
2303d6801f
website: Change pre overflow-x to auto ( #4573 )
...
`overflow-x: scroll` shows scrollbars under every code block even if they aren't scrollable:
![scrollbar](https://user-images.githubusercontent.com/1341513/40591633-f0e85540-61d1-11e8-9906-c0c67d432d26.png )
2018-05-28 11:00:43 +10:00
Lucas Duailibe
a6db391556
Short rule should only apply to the first identifier ( #4575 )
2018-05-27 21:52:42 -03:00
Lucas Duailibe
2505926533
Fix PR playground
2018-05-27 21:52:06 -03:00
Kevin Donnelly
16a84e88d6
Improve format when passing ts arrow function with return type as an argument ( #4228 )
...
* Add various tests for ts type annotated function properties.
* Improve format when passing ts arrow function with return type
* Add test for case from #2581 .
2018-05-27 20:39:08 -03:00
Lipis
bce668af05
Rename 2018-05-27-1.13.0.md to 2018-05-23-1.13.0.md
...
To fix the broken link on Twitter.. https://twitter.com/PrettierCode/status/1000819715374272515
2018-05-27 23:47:32 +03:00
Lucas Duailibe
7b723d345d
Fix unpkg URL
2018-05-27 17:18:54 -03:00
dnalborczyk
a227df916a
fix spelling ( #4568 )
...
* fix spelling
* fix more things
2018-05-27 16:58:54 -03:00
Suchipi
f5f84977a5
Rename 2018-05-23-1.13.0.md to 2018-05-27-1.13.0.md
...
Context: https://github.com/prettier/prettier/pull/4530#issuecomment-392359122
2018-05-27 13:36:48 -06:00
Suchipi
e0b6a328aa
Fix typo in 1.13 blog post
2018-05-27 12:44:20 -06:00
Lucas Duailibe
412b064df8
Format docs with Prettier 1.13
2018-05-27 15:38:31 -03:00
Lucas Duailibe
1a4dda73a9
Fix playground
2018-05-27 15:31:52 -03:00
Lucas Duailibe
0d57f22098
Use new worker on playground
2018-05-27 15:24:50 -03:00
Lucas Duailibe
9da80415f4
Bump own prettier dependency
2018-05-27 15:22:34 -03:00
Lucas Duailibe
8892b14d8a
1.13.0
2018-05-27 15:19:39 -03:00
Lucas Duailibe
68e24cef79
Build docs script
2018-05-27 15:19:01 -03:00
Lucas Duailibe
9ee6d0bf55
1.13 release notes ( #4530 )
2018-05-27 15:18:07 -03:00
Lucas Duailibe
1c66625f37
Add standalone docs ( #4550 )
2018-05-27 15:17:38 -03:00
Lucas Duailibe
4daeaa0d9a
Update docs for default parser ( #4557 )
2018-05-27 15:17:17 -03:00
Jed Fox
a1e8d586ad
Add a single test suite for blank files in all parsers ( #4562 )
...
* Add a single test suite for blank files in all parsers
The parsers that don’t yet support blank files have been filtered out of the list until they do.
* Don’t directly `require()` Prettier
* Update `require`
* Add missing Babylon parser
* Update snapshots
2018-05-27 08:22:25 -04:00
Lucas Azzola
b0cb63a7bb
Use destructuring for imports ( #4554 )
...
* Use destructuring for imports
* Clean up integration tests
* Use moduleNameMapper for require_prettier
2018-05-27 21:36:12 +10:00
Suchipi
5508546de8
Add formatWithCursor, check, doc, and util to the standalone build ( #4556 )
...
* Add formatWithCursor, check, and doc to the standalone build
* Add util, too
2018-05-26 17:25:36 -06:00
Brian Ng
fda7bf59f4
Add support for Flow's proto modifier syntax ( #4551 )
...
Flow commit: eb815be907
Babel PR: https://github.com/babel/babel/pull/7978
2018-05-25 17:23:17 -05:00
Brian Ng
d20d9c160e
Switch to @babel/parser ( #4544 )
...
We landed a change that added a new `InterpreterDirective` AST node type for hashbangs, and no longer add it as a comment/leadingComment.
Ref: https://github.com/babel/babel/pull/7928
I mimicked what we do in `@babel/generator` here, since I found it better than trying to add comments to the ast in `parser-include-shebang.js`). Definitely open to a better/cleaner option though!
Note: I'll follow this up with enabling tests for https://github.com/prettier/prettier/pull/4543 and https://github.com/prettier/prettier/pull/4540 once they land too.
2018-05-25 11:27:41 -05:00
Lucas Duailibe
174a7736c1
[build] Always transpile everything ( #4548 )
2018-05-25 12:47:01 -03:00