Lucas Duailibe
576e570711
Fix custom require's ( #4766 )
2018-06-28 15:56:25 -03:00
Derek Kramer
0ce40b197d
Add `--stdin-filepath` to website ( #4513 )
2018-06-28 20:38:16 +02:00
Ika
0b659b898d
feat: update linguist languages ( #4741 )
...
Context: https://github.com/prettier/prettier/pull/4734#issue-196702272
Languages should be easy to maintain now.
2018-06-28 08:24:02 +08:00
Rhys Bower
2c2283ea7d
Update Jest URL to jestjs.io ( #4756 )
2018-06-26 22:05:45 -03:00
Ika
b67fa907bd
fix(markdown): preserve email autolink ( #4740 )
...
```diff
<hello@example.com>
<mailto:hello@example.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-<mailto:hello@example.com>
+<hello@example.com>
<mailto:hello@example.com>
```
2018-06-27 08:36:51 +08:00
Warren Seine
6c482e2e6c
Expose `isPreviousLineEmpty` to plugins ( #4747 ). ( #4748 )
2018-06-25 23:20:00 -06:00
Karl O'Keeffe
7a3ac3a693
Handle JSX whitespace separately from fbt whitespace ( #4717 )
...
* Hande JSX whitespace separately from fbt whitespace
* Extra test cases
* Further tweak to JSX handling
* Possible improvement of single character text
* More tests
* Pull out separator code
* More tests for fbt
2018-06-25 19:11:40 +01:00
Ika
9805babf94
docs(changelog): link -> diff
...
for consistency
2018-06-25 22:10:11 +08:00
Lucas Duailibe
1baddf27f2
Bump Prettier dependency to 1.13.6
2018-06-25 10:59:37 -03:00
Lucas Duailibe
114b30b196
Release 1.13.6
2018-06-25 10:58:03 -03:00
Evilebot Tnawi
aa4ea034b3
refactor: some stuff ( #4703 )
2018-06-25 12:57:41 +03:00
Ika
f51acf22fe
feat(vue): support pragma ( #4713 )
2018-06-25 10:44:00 +08:00
Michael Krauße
908fb95dc6
It should be said that filewatcher is a plugin ( #4743 )
...
File-Watcher is an extra plugin which needs to be installed.
2018-06-24 17:04:07 -06:00
Ika
c38e6af301
fix(yaml): add missing `since` field ( #4739 )
2018-06-23 17:04:47 +08:00
Ika
652628b6c9
chore: update lockfile
...
reflect changes in #4733
2018-06-23 15:26:50 +08:00
Suchipi
cb5e1db4a5
Revert "Ternary Operators in JSX Expression Containers ( #4731 )" ( #4736 )
...
This reverts commit 12046cd01b
.
2018-06-22 10:32:38 -06:00
tyrerexus
12046cd01b
Ternary Operators in JSX Expression Containers ( #4731 )
...
This pull request aims to fix the issue of excessive nesting brought up in the following comment: https://github.com/prettier/prettier/issues/737#issuecomment-392541493
This "fix" is very simple. It adds a new possible way to activate JSX mode for ternary operators. If the first non-conditional parent of the expression is a JSX expression container, then JSX mode gets activated.
This branch also contains a test case for said scenario.
2018-06-22 10:30:53 -06:00
David Gomes
9e0b1223cd
Update postcss-scss parser version to 1.0.6 (with test for it). ( #4733 )
2018-06-22 13:42:15 +03:00
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