Georgii Dolzhykov
31b3351800
Better formatting for nested await in member/call expression heads ( #10342 )
2021-02-20 12:50:44 +02:00
Georgii Dolzhykov
e147c3b1c4
Fix ASI protection for private fields ( #10334 )
2021-02-18 12:39:56 +02:00
Georgii Dolzhykov
0a647a0d31
Format assignments more consistently ( #10222 )
2021-02-16 21:25:11 +02:00
Georgii Dolzhykov
a322cf152a
Disable Babel error recovery for invalid escaped characters in identifiers ( #10322 )
2021-02-15 16:58:50 +02:00
Sosuke Suzuki
2598803a2a
Improve formatting for React Hooks call ( #10238 )
...
* Add isReactHookCallWithDepsArray
* Improve formatting for React hooks call
* Refactor
* Add changelog
* Use isReactHookCallWithDepsArray in shouldGroupLastArg
* Support general pattern
2021-02-14 23:57:26 +02:00
Sosuke Suzuki and fisker Cheung
7d84c0a5a4
Fix inconsistent indentation for ternary in call expressions ( #10266 )
...
* Refactor with do while
* return false when ternary in CallExpression is not callee
* Update changelog
* For computed member property
* Fix
* Simplify
* Minor tweak
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-02-12 08:11:24 +09:00
Georgii Dolzhykov
03a43ae55f
Fix error thrown on expressions like a(b => c => function (){}) ( #10278 )
2021-02-09 11:08:14 +02:00
Sosuke Suzuki
cc1f0543e6
Consistent indentations for conditional operators ( #10187 )
2021-02-07 16:53:05 +02:00
Georgii Dolzhykov
a7ea77e0ef
Fix regression after pr-10106 ( #10160 )
2021-01-29 19:58:24 +02:00
Sosuke Suzuki and fisker Cheung
c881350e8c
Break assignment whose rhs is wrapped by an unary expression ( #10158 )
...
* Break assignment whose rhs is wrapped unary expression
* Add changelog
* Recursive
* Refactor
* With loop
* Use if
* Update assignment.js
* Update assignment.js
This rewrite not totally equal, but should safe.
* Revert "Update assignment.js"
This reverts commit 14549442b7726461b0e39d0b1077cdbb00195e73.
* Try move parser check upper
* Simplify `switch`
* Simplify
* Move parser check to top
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-01-28 23:06:16 +09:00
Georgii Dolzhykov
24433cbbf6
Use fill to print number-only arrays ( #10106 )
2021-01-25 10:07:06 +02:00
fisker Cheung
12bddae20c
Switch default branch to main ( #10115 )
2021-01-23 19:14:13 +02:00
Sosuke Suzuki
c7a3c16f7d
Improve visual separation between header and body in classes with multiline headers ( #10085 )
...
* Add hardline for a class whose extends part is broken
refactor
Use groupId
Remove isPreviousLineEmpty
* Avoid leading comments
* Rename to heritage
* Add heuristic for implements
* Fix lint problems
* Fix
Fix
Fix
* Extract getGroupId patterns
* Adopots solution 2
* Fix
* Fix lint problem
* Add changelog
* Address reviews
* Update tests
* Rename to createGroupIdMapper
* Split files
* Add tests for complex extends
* Fix changelog
2021-01-20 15:01:16 +09:00
Georgii Dolzhykov
92cf9452e9
Disable Babel's error recovery for omitted call arguments ( #10065 )
2021-01-18 09:45:37 +02:00
fisker Cheung
2725ebee55
Fix unstable JSX formatting with U+3000 ( #9866 )
2020-12-15 13:45:16 +08:00
fisker Cheung
cc9460950d
Fix inconsistent directive print ( #9850 )
2020-12-15 12:24:13 +08:00
Sosuke Suzuki
aaa9363e6f
Print null argument list item ( #9787 )
...
* Print null argument list item
* Add changelog
* Add tests for comments
2020-12-08 13:52:30 +09:00
fisker Cheung and Georgii Dolzhykov
f59eacd7f6
JS: Fix multiple-comments-on-same-line format ( #9672 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-11-30 13:51:49 +08:00
fisker Cheung
05d20a63a4
Exclude node at rangeStart ( #9704 )
2020-11-30 12:29:48 +08:00
sosukesuzuki
9ee97183a0
Clean changelog_unreleased for patch-release
2020-11-28 09:46:33 +09:00
sosukesuzuki
eb7972a86d
Clean changelog_unreleased for patch-release
2020-11-28 09:39:51 +09:00
sosukesuzuki
81cf06129b
Merge branch 'patch-release'
2020-11-28 09:28:07 +09:00
fisker Cheung
664d0d33b5
Fix inconsistent language comment detection ( #9743 )
2020-11-26 19:30:57 +08:00
sosukesuzuki
81bfd3ffc7
Fix changelog to old format
2020-11-26 02:42:41 +09:00
Sosuke Suzuki
b46710f2d9
Fix formatting for AssignmentExpression with ClassExpression ( #9741 )
...
* Fix formatting for asignment with superClass
* Add tests
* Changelog
* For only AssignmentExpression
* Remove unnecesary ifBreak
2020-11-26 02:35:14 +09:00
Sosuke Suzuki
3208b948fc
Fix formatting for AssignmentExpression with ClassExpression ( #9741 )
...
* Fix formatting for asignment with superClass
* Add tests
* Changelog
* For only AssignmentExpression
* Remove unnecesary ifBreak
2020-11-22 09:24:22 +09:00
fisker Cheung
4f330f0a78
Fix comments inside JSX end tag ( #9711 )
2020-11-21 16:34:28 +08:00
sosukesuzuki
28cc1908fd
Clean changelog_unreleased
2020-11-20 14:01:22 +09:00
fisker Cheung
f9f66711b9
Fix comments in require() with no argument ( #9670 )
2020-11-16 01:11:53 +08:00
Georgii Dolzhykov
e721ef30ea
Flatten function expression parameters in hugged last argument ( #9662 )
...
Fixes #3376
This was done for arrow functions in #1305 ("Avoid breaking arguments for last arg expansion").
This PR enables the same for function expressions unless the function expression is the only argument.
2020-11-14 13:17:01 +02:00
Brian Kim
d0f813e5d4
Revert #9011 , don’t add parens when yielding simple JSX expressions ( #9650 )
2020-11-13 08:49:15 +08:00
c91914e610
Build(deps): Bump @babel/parser from 7.12.3 to 7.12.5 ( #9597 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com >
Co-authored-by: fisker <lionkay@gmail.com >
2020-11-06 19:30:42 +08:00
fisker Cheung
3d7016e2dc
Add meriyah parser ( #9514 )
2020-11-05 14:08:37 +08:00
Georgii Dolzhykov
d6858d52ad
Changelog edits for 2.2 ( #9603 )
2020-11-05 13:07:29 +09:00
Sosuke Suzuki
d5cfb5b856
Add HIGHTLIGHT mark to CHANGELOG ( #9562 )
2020-11-03 02:55:07 +09:00
Sosuke Suzuki
13f3336bba
Support class-static-block proposal ( #9476 )
...
* Support class-static-block proposal
* Update changelog
2020-10-23 20:09:07 +09:00
Sosuke Suzuki
3b7a7ba3c9
Update @babel/parser to 7.12 ( #9408 )
...
* Install babel/parser 7.12
* Add tests for babel/babel#12161
* Add test for babel/babel#12076
* Add test for babel/babel#12085
* Add test for babel/babel#12108
* Add test for babel/babel#12120
* Add test for babel/babel#12054
* Add test for babel/babel#12061
* Add test babel/babel#12093
* Add test for babel/babel#12065
* Add test for babel/babel#12111
* Add test for babel/babel#12072
* Switch syntax-module-attributes to syntax-import-assertion
* Support "String import/export specifier"
* Remove tests for module-attributes
* Add changelog
* Update to 7.12.3
* Fix by linter
* Fix by spellchecker
* Add tests for module attributes to errors
* Add error test for module string name with import
* Remove TSTypeCastExpression
* Add tests for funny import-assertions
* Update snapshots|
* Add more tests
2020-10-20 19:01:30 +09:00
fisker Cheung
140cb14f3a
JS: Fix import {a as a} and export {a as a} format ( #9435 )
2020-10-20 14:38:34 +08:00
fisker Cheung
7d80bae76a
Consistent format on invalid template literals ( #9431 )
2020-10-17 00:51:00 +08:00
fisker Cheung and Chris Brody
73e3976c34
Add espree parser ( #9000 )
...
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
2020-10-13 09:14:02 +08:00
Sosuke Suzuki
bba196abc8
Improve formatting for AssignmentExpression with ClassExpression that has long superClass ( #9341 )
...
* Improve formatting for AssignmentExpression with ClassExpression that has long superClass
Fix by prettier
* Add changelog
* Remove unnecesary concat call
* Mention abount Google Closure Library in changelog
2020-10-08 20:11:15 +09:00
Sosuke Suzuki
bb238f5765
Fix placing leading comments for a body of while statement ( #9345 )
...
* Add leading comments for while
* Add tests
* Add changelog
2020-10-08 17:08:40 +09:00
Georgii Dolzhykov
fa04a5b464
Cleanup changelog_unreleased ( #9325 )
...
These were released in 2.1.2
2020-10-06 10:12:46 +09:00
fisker Cheung and Georgii Dolzhykov
64cb7abed8
JS: Fix comments inside template ( #9278 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-10-05 05:49:52 +08:00
Sosuke Suzuki
2c0e9838f2
Fix line breaks for CSS in JS ( #9136 )
...
* Fix 2.1 regression for css-in-js
* Add changelog
2020-09-04 13:12:58 +09:00
Georgii Dolzhykov
488e08d70b
Remove the need to add full GitHub links in changelog entry titles ( #9104 )
2020-09-01 08:51:32 +08:00
Sosuke Suzuki
cc63358c90
Respect spacing between template values in embedded css ( #9078 )
...
* Respect no space for embedded css
* Fix by lint
* Add changelog
2020-08-28 11:08:29 +09:00
18b4cabc0c
Add 2.1 blog post ( #8932 )
...
* Add draft for 2.1 blog post
* Update cspell.json
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update changelogs
* Add author to cspell ignore patterns
* Update cspell.json
* Fix original changelog
* Run draft script
* Update
* Fix TypeScript on Highlights
* Fix heading
* Fix author
* Fix changelog for 8410
* Fix syntax highlight
* Move changelog for 7844 to /scss
* Update website/blog/2020-08-21-2.1.0.md
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com >
* Remove changelog_unreleased
* Update filename
* Replace to actual version manually
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com >
2020-08-24 20:36:52 +09:00
fisker Cheung
dc46155962
Revert #7367 "Fix: remove unnecessary parens when yielding jsx" ( #9011 )
2020-08-21 09:09:45 +08:00
Sosuke Suzuki
e3f075b3e7
Revert #7889 ( #8861 )
...
* Revert #7889
* Remove changelog
* Run prettier
2020-08-20 00:00:27 +09:00