Commit Graph

2520 Commits (f53b5b83235838eb22a0cc823731ae01bffc8d6d)

Author SHA1 Message Date
Ika f53b5b8323
fix(options): inferParser for standalone (#4721) 2018-06-22 12:43:44 +08:00
Ika 5cfaba6a1c
chore(ISSUE_TEMPLATE): add template for integration issue (#4722)
Ref: https://blog.github.com/2018-05-02-issue-template-improvements/

![image](https://user-images.githubusercontent.com/8341033/41692826-e7b98d06-7534-11e8-9b51-54a04c097681.png)

So that people would know what kind of info we need to know to understand issues like #4720.
2018-06-22 12:37:52 +08:00
Rubén Norte cbef0105e9 Upgrade flow-parser to 0.75.0 (#4727)
* Upgrade flow-parser to 0.75.0

* Added failing test for optional catch binding and flow-parser@0.74.0
2018-06-21 10:50:54 -07:00
Ika dcf44ffbdc
feat: support YAML (#4563)
* feat: support YAML

* fix: do not indent sequence in mappingValue

* docs: add yaml to index.md

* fix: reduce `SyntaxError: Node#parse consumed no characters`

* chore: remove old-build and new-worker.js

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* fix: no space after `<<`

* fix: add yaml to standalone test

* test: add tests

* fix: next empty line in flow collection

* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/

* fix: update parser

* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id

* chore: fix node 4

* chore: add tools_yaml.svg

* chore: remove resolved TODO

* refactor: remove unnecessary workaround

* chore(worker): importScriptOnce

* chore(build): rename with babelPlugins

* make it rollup compatible

* feat: support singleQuote

* refactor
2018-06-21 10:29:42 +08:00
Lucas Duailibe 9ec1da1ad1
[internal] Cache build results (#4693) 2018-06-18 15:16:40 -03:00
Anthony Sottile 5d5c97a17f Fix `prettier` installed in a directory not named prettier (#4706) 2018-06-18 13:29:54 -03:00
Ika b99de9811b
feat(graphql): support pragma (#4699) 2018-06-17 14:04:48 +08:00
Jed Fox 02e0bdc130
A few changelog updates (#4702)
* Update CHANGELOG.md

* s/link/diff/; shorten a few SHAs; add missing diff link
2018-06-15 16:43:25 -04:00
Ika 4109abf4dd
feat(javascript): support BigIntLiteral (#4697) 2018-06-16 00:20:04 +08:00
Evilebot Tnawi 03a2002348
fix: newline between front-matter and comment (#4701) 2018-06-15 16:27:41 +03:00
Vojtěch Štěpančík 56af3d621d Add support for parsing babylons throwExpressions (#4695) 2018-06-14 21:35:39 -03:00
Ika 18aa527adc
feat(api): support relative paths for plugin(SearchDir)s in config files (#4667)
* feat(api): support relative paths for plugin(SearchDir)s in config files

* fix: convince appveyor
2018-06-15 04:25:03 +08:00
Lucas Duailibe 0780adbb0d Fix build output in CircleCi 2018-06-14 11:15:04 -03:00
Lucas Duailibe 4a16319470
Travis - Allow failures in Node 6 (#4690) 2018-06-14 09:55:31 -03:00
Ika f6890bd071
feat(css): support pragma (#4688) 2018-06-14 09:51:18 +08:00
Lucas Duailibe 78ac229956
Transpile webpack generated bundles (#4689) 2018-06-13 17:23:33 -03:00
Joseph Frazier 88be12ca07
Allow `originalText` to be passed to `formatAST()` (#4677)
This allows `prettier.__debug.formatAST` to not crash when given the AST
for the below code (taken from https://astexplorer.net/), which is
useful when trying to use Prettier as a code generator for an AST
without corresponding source code (https://github.com/prettier/prettier/issues/4675)

```js
let tips = [
  "Click on any AST node with a '+' to expand it",

  "Hovering over a node highlights the \
   corresponding part in the source code",

  "Shift click on an AST node expands the whole substree"
];

function printTips() {
  tips.forEach((tip, i) => console.log(`Tip ${i}:` + tip));
}
```
2018-06-13 12:30:14 -04:00
Lucas Duailibe f0907a049d chore(rollup): Refactor native shims plugin 2018-06-13 12:49:35 -03:00
Lucas Duailibe 889b7dab79
Run tests using the standalone build in an empty context (#4668)
Validate that our build is stripping all the "native" dependencies (native modules and env vars).
2018-06-12 15:05:40 -03:00
Tony Trinh dcc060a5a5 refactor: remove redundant call to normalizeOptions (#4671)
Removes redundant call to `normalizeOptions` (already done in preceding line)

8ec5432768/src/main/core.js (L260-L263)
2018-06-12 10:56:16 +08:00
Ika 5646573ad7
fix(javascript): preserve parens for type casting for sub-item (#4648) 2018-06-11 19:50:53 +08:00
Lynn Smeria 61d35dd636 fix(typescript): preserve type parameters of import-types (#4656) (#4662) 2018-06-11 11:29:10 +10:00
Brian Ng 3e0dceda99
flow-parser@0.74.0 (#4649) 2018-06-09 17:03:50 -05:00
Ika 98bfd03d93
feat(typescript): support unknown type (#4625) 2018-06-10 00:12:30 +08:00
Ika 3666411bd5
chore(scripts): add missing `execa` import
See 4dde525996
2018-06-09 22:09:51 +08:00
Lucas Duailibe d013983d8a
Always expand first argument if the second argument is also a call expression (#4657) 2018-06-08 15:16:12 -03:00
Lucas Duailibe cb1c52ad08
Break JSX in arrow functions in JSX expressions (#4601) 2018-06-08 15:15:50 -03:00
Lucas Duailibe 4dde525996 [release script] Run Prettier on CHANGELOG.md before committing 2018-06-08 15:14:35 -03:00
Lucas Duailibe 6d42fd12e4 Bump Prettier dependency to 1.13.5 2018-06-08 15:06:04 -03:00
Lucas Duailibe ab4ee77b3a Release 1.13.5 2018-06-08 15:00:50 -03:00
Ika c5bbee67d3
fix(playground): no unnecessary import (#4653) 2018-06-09 00:01:14 +08:00
Ika 35a42bef24
fix(markdown): better handling for trailing spaces (#4593)
- preserve trailing spaces in html, excluding html comment
- `doc-printer` is now unrelated to `options.parser`
- fix some cases that two trailing spaces are mis-considered as `break`
2018-06-08 00:20:25 +08:00
Ika fb74dc54c3
feat(api): make `getFileInfo()` really async (#4640) 2018-06-07 00:34:02 +08:00
Aakansha Doshi 8ec5432768 Fix empty file error in json and graphql (#4553)
* Fix empty file error in json and graphql

* fix AST_COMPARE=1 issue

* use tests/empty

* revert

* fix lint
2018-06-06 10:41:12 -03:00
Lucas Duailibe 70604f1fd1 [Release script] Use `execa` 2018-06-05 19:10:27 -03:00
Lucas Duailibe 54b1f8562d
Introduce Release script (#4631) 2018-06-05 16:37:52 -03:00
Ika f27f6c525b
fix(typescript): preserve decorator on interface (#4632) 2018-06-05 00:08:24 +08:00
Lucas Azzola abef84684d
Add AppVeyor and Blazing to Badges (#4628) 2018-06-04 14:16:06 +10:00
Lucas Duailibe a4da6e6c8e
Inline _ or $ in the root of a method chain (#4621) 2018-06-01 12:51:06 -03:00
Ika 26b13b6274 chore(scripts): update ISSUE_TEMPLATE and exclude tarball (#4620) 2018-06-01 10:58:16 -03:00
Ika 77c0e940f3 docs(issue_template): bump version to 1.13.4 2018-06-01 20:07:17 +08:00
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