Georgii Dolzhykov
1ea5c993a0
Fix arrow chain indentation in calls and binaries ( #13391 )
2022-08-29 12:27:24 +03:00
fisker Cheung
0b072060b5
Merge branch 'main' into next
...
# Conflicts:
# src/language-js/print/flow.js
# src/language-js/print/literal.js
2022-08-26 10:29:09 +08:00
5a627651ff
fix: line breaks in multiline strings, issue 13157 ( #13274 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
Co-authored-by: Gleb Dolzhikov <gleb.dolzhikov@ix.co >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-08-23 20:56:52 +08:00
fisker Cheung and Georgii Dolzhykov
3cae07c9df
Fix cursor positioning for files containing emoji ( #13340 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2022-08-22 19:24:14 +08:00
Georgii Dolzhykov
17081e6cf6
Support decorated function pattern ( #10714 )
2022-08-08 21:57:19 +03:00
fisker Cheung
298347c9fb
Merge branch 'main' into next
...
# Conflicts:
# netlify.toml
# src/cli/find-cache-file.js
# src/cli/utils.js
# src/main/parser.js
# website/playground/PrettierFormat.js
# website/static/worker.js
2022-08-01 11:27:34 +08:00
fisker Cheung
83400d19b4
Change default value of trailingComma to "all" ( #11479 )
2022-08-01 11:05:17 +08:00
Georgii Dolzhykov
cd9955f143
Fix range format for function bodies ( #13173 )
2022-07-25 12:28:24 +03:00
fisker Cheung
811b591ee8
Update dependency jest-docblock to v28.1.1 ( #13054 )
2022-07-11 10:03:49 +08:00
fisker Cheung
c7c99305e9
Clean changelog
2022-06-14 14:40:54 +08:00
Sosuke Suzuki and fisker Cheung
934068ac6a
Add 2.7 blog post ( #12966 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-06-14 14:25:40 +08:00
HosokawaR
765d78305f
Fix exports comment formats. ( #12860 )
...
* fix exports comment formats
* add tests
* add change log
* rename function name
* merge logic
* add tests to compare comment formats in `export` and `import`
2022-05-15 22:39:55 +09:00
HosokawaR and fisker Cheung
7ab6198453
Make more callee patterns recognized as "test call callee". ( #12779 )
...
* make more pattern recognized as test call callee
* add tests
* add change log
* make collate logic easier to read.
* add typedef
* remove extra processing
* fix filename mistake is-noded-matches.js -> is-node-matches.js
* add correct words to cspell config
* add a comment about copying
* move patterns outside
* Minor tweak
* rename valiable name
* Adding changelog real-world use case
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-05-07 16:44:56 +09:00
Sosuke Suzuki
504d751036
Preserve blank line between export specifiers ( #12746 )
...
* Preserve blank line between export specifiers
* Add changelog
* rename
2022-04-29 17:42:42 +09:00
Sosuke Suzuki
8a52865cf9
Clean changelog_unureleased
2022-04-03 01:37:22 +09:00
dependabot[bot] and fisker Cheung
b1e96cde95
Build(deps): Bump meriyah from 4.2.0 to 4.2.1 ( #12567 )
...
* Build(deps): Bump meriyah from 4.2.0 to 4.2.1
Bumps [meriyah](https://github.com/meriyah/meriyah ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/meriyah/meriyah/releases )
- [Changelog](https://github.com/meriyah/meriyah/blob/master/CHANGELOG.md )
- [Commits](https://github.com/meriyah/meriyah/compare/v4.2.0...v4.2.1 )
---
updated-dependencies:
- dependency-name: meriyah
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Add test for https://github.com/meriyah/meriyah/commit/6de707a0efb3053767deaa36b1ed6979b0d3f873
* Test https://github.com/meriyah/meriyah/commit/37c63613771e5bc6e23b7da2d92e992c60dafc5a
* Test https://github.com/meriyah/meriyah/commit/d757c6b20ae4f6f4e55a77179726db36cf2bd50b
* Add changelog
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-04-02 20:13:21 +09:00
Sosuke Suzuki
58e48b79da
Clean changelog_unreleased
2022-03-16 13:35:41 +09:00
eb671dd983
2.6 blog post ( #12412 )
...
* Generate
* Generate
* Add TS4.6 changelog
* Regenerate
* Add changelog to switch to esbuild
* Add category
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Address review
* Regenerate
* Highlight TS 4.6
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Regenerate
* Update changelog_unreleased/typescript/12390.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Add thanks message for sponsors
* Address review!
* Update cspell.json
* Fix link of Ubie
* Generate
* Add `Thanks to our sponsors!`
* Update cspell
* Address review
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
* Regenerate
* Add `--print-truncate` option
* Address review
* Generate
Co-authored-by: Jed Fox <git@jedfox.com >
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
2022-03-16 13:25:48 +09:00
Georgii Dolzhykov
20cc23ba35
Fix idempotence issues caused by eol comments after = in assignments ( #12349 )
2022-03-08 01:08:35 +08:00
Sosuke Suzuki and fisker Cheung
199a1bb389
Support decorator auto accessors syntax ( #12299 )
...
* Handle `ClassAccessorProperty`
* Disable file
* Add `babel-plugins` tests
* Add more tests
* Fix tests
* Fix typo
* Add changelog
* Fix printing for no-semi
* Update statement.js
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-03-02 16:00:50 +09:00
Sosuke Suzuki
8c49fd0f6f
Support destructuring private proposal ( #12276 )
...
* Enable `destructuringPrivate` plugiin
* Add tests
* Add changelog
* Add more tests
2022-02-14 11:28:47 +09:00
Sosuke Suzuki
5fbb8cacc4
Add changelog for unicode set notation proposal ( #12277 )
...
* Add changelog for unicode set notation
* Fix typo
2022-02-12 17:56:35 +09:00
Lucas Duailibe
1dffa0f9da
Improve printing of comments in type aliases ( #12268 )
2022-02-09 23:02:47 -03:00
fisker Cheung
6d02cd9650
Add parens to ClassExpression with decorators ( #12260 )
2022-02-08 15:06:31 +08:00
Lucas Duailibe
69ea417f6b
Prevent multiple parenthesis around superclass with typecast ( #12226 )
2022-02-05 11:56:37 -03:00
Lucas Duailibe
e73a7bc47e
Preserve comment position before super class ( #12222 )
2022-02-05 10:50:04 -03:00
Lucas Duailibe
72ac2bbe5f
Fix comment in abstract methods ( #12185 )
2022-01-29 19:25:53 -03:00
fisker Cheung
9691e7bc37
Add acorn parser ( #12172 )
2022-01-28 15:25:30 +08:00
Lucas Duailibe
f4d9816bc1
Keep comments of default cases in the same line of the case ( #12177 )
2022-01-28 00:11:28 -03:00
Sosuke Suzuki
db73cc8e0c
Print end-of-line comment for continue/break statements ( #12075 )
...
* Add handleBreakAndContinueStatementComments to handleEndOfLineComment
* Add tests
* Add changelog
* Update tests
* Add more tests
* Fix for own line comments
* Fix tests
* Fix tests
* Fix tests
* Add unstable tests
2022-01-19 22:29:37 +09:00
Jed Fox
f29a7565e9
Collapse JSXExpressionContainer → AwaitExpression → JSXElement ( #12109 )
2022-01-16 14:59:22 -05:00
Jed Fox
920283a1dd
Inline await expressions in JSX ( #12088 )
2022-01-15 16:00:39 -05:00
Sosuke Suzuki
6ccc462409
Print comments for parenthesized TS keyword types ( #12070 )
...
* Prefer node.start for TS keyword types
* Add tests
* Add changelog
* Refactor
* Use isTsKeywordType
* Fix lint problems
2022-01-13 09:54:06 +09:00
Sosuke Suzuki
a50bc4e14a
Preserve end-of-line comment for if statement without blocks ( #12017 )
...
* Print as dangling comments
* Add tests
* Add changelog
* Use symbol instead of string
2022-01-06 09:31:58 +09:00
Hendrik Nijmeijer and Hendrik Nijmeijer
846069b6c7
recognize waitForAsync as test-statement in Angular ( #11992 )
...
* recognize waitForAsync as test-statement in Angular
* Add changelog_unreleased entry
Co-authored-by: Hendrik Nijmeijer <hendrik@hendriknijmeijer.nl >
2021-12-20 17:04:19 -03:00
sosukesuzuki
59336b9791
Clean changelog_unreleased
2021-12-04 23:35:40 +09:00
fisker Cheung
257a8dfd26
Add changelog for #11892 ( #11904 )
2021-12-03 13:19:57 +09:00
sosukesuzuki
7fc196e96b
Clean changelog_unreleased
2021-11-25 23:12:16 +09:00
04aa850fde
Add 2.5 blog ( #11823 )
...
* Mark highlights
* Update intro
* Draft
* Update changelog
* Update changelog
* Regenerate draft
* Update TS 4.5 blog URL
* Regenerate draft
* Fix by prettier
* Fix
* Remove changelogs released already
* Address review
* Update
* Regenerate draft
* Regenerate draft
* Regenerate
* Update changelog_unreleased/typescript/11515.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update changelog_unreleased/typescript/11721.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update changelog_unreleased/mdx/11563.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update changelog_unreleased/mdx/11563.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update website/blog/2021-11-21-2.5.0.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update website/blog/2021-11-21-2.5.0.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Regenerate
* Address reviews
* Regenerate
* Use examples
* Regenerate
* Address review
* Renegrate
* Address review
* Regenerate
* MDX 2 comments => MDX v2 comment syntax
* Fix
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Lucas Azzola <derflatulator@gmail.com >
* Update changelog_unreleased/typescript/11721.md
Co-authored-by: Lucas Azzola <derflatulator@gmail.com >
* Regenerate
* Update changelog_unreleased/typescript/11515.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Regenerate
* Address review
* Regenerate
* Address review
* Regenerate
Co-authored-by: Jed Fox <git@jedfox.com >
Co-authored-by: Lucas Azzola <derflatulator@gmail.com >
2021-11-25 23:04:16 +09:00
fisker Cheung
8a85ba4e18
Update acorn ( #11835 )
...
* Update `acorn`
* Fix test, add changelog
2021-11-21 01:44:28 +09:00
Sosuke Suzuki
8f7c2f77a4
Respect spacing for between expressions and parentheses in embedded CSS ( #11800 )
...
* Fix embedded css formatting
* Add changelog
2021-11-12 23:17:29 +09:00
Sosuke Suzuki and fisker Cheung
aab66b846b
Add more tests, update changelog ( #11779 )
...
* Update changelog
* Fix
* Add more tests
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-11-08 22:52:20 +09:00
Sosuke Suzuki
6a0995040d
Ignore strict errors by @babel/parser ( #11778 )
...
* Ignore StrictEvalArguments
* Ignore EvalArgumentsBinding
* Igngore StrictFunction
* Updates tests for binding eval
* Updates tests for eval
* Update changelog
* Address review
2021-11-08 15:14:20 +09:00
fisker Cheung
9440b70563
Fix error on deleting variables ( #11750 )
...
* Fix error on delete variables [skip ci]
* Add changelog
2021-11-06 22:06:30 +09:00
Kevin Gibbons and Sosuke Suzuki
b86d36a28b
fix parentheses around sequence expression as body of arrow chain ( #11593 )
...
* fix parentheses around sequence expression as body of arrow chain
* add changelog
* lint
* Update changelog_unreleased/javascript/11593.md
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2021-09-28 05:15:17 +09:00
sosukesuzuki
d812687502
Clean changelog
2021-09-09 18:29:57 +09:00
Sosuke Suzuki and Jed Fox
07476f80a7
2.4 blog post ( #11457 )
...
* Mark highlights
* Add new draft
* Update intro
* Fix typo
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Address review
* Address review
* Address review
* Regenerate draft
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Address review
* Regenerate draft
* Regenerate draft
Co-authored-by: Jed Fox <git@jedfox.com >
2021-09-09 18:24:31 +09:00
Sosuke Suzuki
53f95f3500
Support hack-style pipeline ( #11335 )
...
* Avoid to conflicts to v8intrinsic plugin
* Support hack-style pipeline
* Update tests for hask-style pipeline
* Update tests 2
* Add changelog
* Update misc tests
* Address reviews
* Fix type error
* Copy plugin array
* Add tests
* Address review
* Add error tests
2021-08-15 01:16:13 +09:00
Sosuke Suzuki
b6fd414918
Count correctly regex literals in method chain arguments ( #11299 )
...
* Use getStringWidth instead of String length
* Add changelog
* Fix changelog
2021-08-02 14:15:07 +09:00
Sosuke Suzuki
1ecae48ae8
Support parenthesized tagged template literals for styled components ( #11246 )
...
* Support parenthesized styled.property
* Add changelog
* Fix changelog
2021-07-25 18:16:25 +09:00