Georgii Dolzhykov
e4f0df5bed
fix: nested embeds (JS in HTML in JS) ( #6038 )
2019-05-27 14:42:13 -03:00
Lucas Duailibe
f8875c1caa
Prevent parens around BindExpressions as properties of MemberExpressions ( #6159 )
2019-05-27 13:58:26 -03:00
Sosuke Suzuki
dcf4c21171
Keep necessary parentheses around the bind expression passed to "new" expression ( #6152 )
2019-05-27 09:21:34 -03:00
Simon Lydell
9cb23fbf24
Playground: Remove `parser` from Copy config JSON ( #6155 )
2019-05-25 09:31:10 -03:00
Sosuke Suzuki
3654108ebe
TypeScript: Keep line breaks within mapped types. ( #6146 )
2019-05-24 19:00:32 -03:00
Lucas Duailibe
28727c3bb6
Fix: move playground link back
2019-05-24 18:45:04 -03:00
Lucas Duailibe
0d7011ba08
Add Donate link to website
2019-05-24 16:33:56 -03:00
Lucas Duailibe
2a298a3815
Fix plugin resolution tests
2019-05-24 14:23:07 -03:00
Kevin Gibbons
c03fcfedb1
Address parentheses bugs for edge cases with call and new ( #6148 )
2019-05-24 11:09:17 -03:00
Lucas Duailibe
e7d833966a
Update FUNDING.yml
2019-05-23 10:37:15 -03:00
Lucas Duailibe
f095d9100b
Update FUNDING.yml
2019-05-23 10:29:07 -03:00
Lucas Duailibe
4af559645b
Create FUNDING.yml
2019-05-23 09:53:19 -03:00
Georgii Dolzhykov
b3adb46ba9
Keep parens around non-null assertions for new-expressions only ( #6140 )
2019-05-22 19:01:47 -03:00
Jody LeCompte
2c914c7c1a
Disable Ctrl + L shortcut in CodeMirror ( #6143 )
2019-05-22 13:17:46 -03:00
Lucas Duailibe
7e47b4ea26
Preserve parens around expressions in default export declaration that start with function or class ( #6133 )
2019-05-20 09:31:38 -03:00
Lucas Duailibe
e222562b58
Update CHANGELOG.unreleased.md
2019-05-19 17:46:04 -03:00
Rich Hong
906d33749b
Add support for styled-jsx external styles ( #6089 )
2019-05-19 13:26:30 -03:00
Sosuke Suzuki
3b3c411642
TypeScript: Keep parentheses around a function called with non-null assertion. ( #6136 )
2019-05-19 13:15:02 -03:00
Sosuke Suzuki
4c64f13ef4
[TS] keep a pair of parentheses where there extra pairs. ( #6131 )
2019-05-17 18:13:40 -03:00
Lucas Duailibe
bb1fd59e00
Remove eval() call from the bundle ( #6129 )
2019-05-17 10:15:45 -03:00
Lucas Duailibe
eca23e111f
Stop converting empty JSX elements to self-closing elements ( #6127 )
...
Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
2019-05-16 15:14:35 -03:00
Lucas Duailibe
df258d6d7e
Add parens in JSX spread element with expressions ( #6130 )
2019-05-16 15:06:41 -03:00
Lucas Duailibe
03fb56ab04
Sort links in CHANGELOG.unreleased.md
2019-05-15 12:58:41 -03:00
Lucas Duailibe
bd8e22497d
Stop handling 'global' in the Node-specific bundles ( #6124 )
2019-05-15 12:57:04 -03:00
Evilebot Tnawi
7a76e5d08e
fix(javascript): correctly handle comments in empty arrow function expressions ( #6086 )
2019-05-15 12:46:12 -03:00
Evilebot Tnawi
2cebeecb4f
fix(javascript): do not hug sequence expression in object properties ( #6088 )
2019-05-15 12:29:45 -03:00
Lucas Duailibe
3e00fbad78
Add empty .prettierrc to project root ( #6125 )
2019-05-15 12:25:22 -03:00
Lucas Duailibe
012b7a653e
Prevent adding unnecessary quotes when a computed key exists ( #6119 )
2019-05-14 19:41:49 -03:00
Lucas Duailibe
f8d07a9531
Update CHANGELOG.md
2019-05-14 14:33:45 -03:00
Mykola Bilochub
c95b81dd3d
fix(markdown): correctly determine count of backticks in inline code ( #6110 )
2019-05-14 12:51:31 -03:00
Brian Kim
48d542ec1e
TypeScript: Don’t breakup call expressions when the last argument is an arrow function with a simple return type ( #6106 )
2019-05-14 10:57:42 -03:00
Justin Ridgewell
4fda7af783
Fix closure type cast without spaces ( #6116 )
...
* Fix closure type cast without spaces
Closure typecasts don't require a space between the `@type` and opening `{`.
* More tests, and add a changelog entry
2019-05-14 10:14:52 -03:00
Lucas Duailibe
8160d84c75
Change font for Tidelift banner
2019-05-13 16:42:08 -03:00
Lucas Duailibe
138eac4102
Update Tidelift message
2019-05-13 16:33:30 -03:00
Lucas Duailibe
65daff16cf
Add Tidelift banner
2019-05-13 16:25:05 -03:00
Lucas Duailibe
17d9653d9f
Update CHANGELOG.unreleased.md
2019-05-13 15:12:30 -03:00
Lucas Duailibe
8149852ff9
Update CHANGELOG.unreleased.md
2019-05-13 15:10:25 -03:00
Sosuke Suzuki
e3b2f4adb4
Keep a trailing comma in type parameter in .tsx files ( #6115 )
2019-05-13 14:53:45 -03:00
Lucas Duailibe
7bb32f41f5
Bump Prettier version
2019-05-13 10:55:54 -03:00
Lucas Duailibe
4a5659a2cb
Update docs
2019-05-13 10:54:29 -03:00
Lucas Duailibe
e3e4d23a12
Release 1.17.1
2019-05-13 10:52:18 -03:00
Lucas Duailibe
aa7b68c0f0
Release 1.17.1
2019-05-13 10:49:00 -03:00
jwbay
6cee80b5b5
Don't break simple template literals ( #5979 )
...
A simple template literal is initially defined as a literal wherein all the expressions are identifiers or member access expressions where all parts are identifiers. We print these expressions into strings with infinite print width before printing the template.
2019-05-08 13:14:55 -03:00
Lucas Duailibe
b44748eecb
Fix lint
2019-05-08 13:09:57 -03:00
Lucas Duailibe
58b08c9915
Update CHANGELOG.unreleased.md
2019-05-08 12:59:52 -03:00
Yang Su
54b7655dab
Improved multiline closure comment detection ( #6070 )
2019-05-07 07:30:07 -03:00
mathieulj
26183e5be2
Use same print width for range formatting as normal formatting. ( #6050 )
...
* Use same print width for range formatting as normal formatting.
Fixes an issue were a file would end up formatted differently
with ranged formatting (--range-start & --range-end) versus
normal whole file formatting.
* Document range bugfix in changelog.
2019-05-04 10:18:55 -04:00
Cyrille David
84cc273c7d
fix(glimmer): {{else}}{{#if}} into {{else if}} merging ( #6080 )
2019-05-02 16:26:26 +03:00
Evilebot Tnawi
157b020de6
fix(javascript): correctly handle comments in empty arrow function expressions ( #6087 )
2019-04-30 14:25:20 +03:00
Justin Ridgewell
c085aeb152
Fix closure compiler type casts ( #5947 )
...
* Fix closure compiler type casts
This fixes casts when they are followed by a closing parenthesis, eg:
```js
foo( /** @type {!Array} */(arrOrString).length );
```
The old code would see the `CallExpresion`'s closing `)` and assume the typecast belonged to the `MemberExpression`, not the `arrOrString` `Identifier`.
This would be easier to accomplish if every AST would tell us if the expression were parenthesized. If they did, we could check that the node were parenthesized and either it or an ancestor has a typecast, stopping when we find an ancestor is itself parenthesized.
* More tests, and changelog
* Fix while loop
* Update changelog
* Update CHANGELOG.unreleased.md
* Use babel's parenthesized information
* Cleanup call
2019-04-26 13:05:57 -04:00