fisker Cheung
8036248b0a
Move prettier-ignored node print into estree printer ( #14406 )
2023-03-06 15:40:18 +08:00
fisker Cheung
4a26d88f9a
Merge branch 'main' into next
...
# Conflicts:
# src/language-js/needs-parens.js
# tests/config/format-test.js
2023-02-24 09:40:12 +08:00
fisker Cheung
bc098779c4
Add missing parentheses for decorator ( #14393 )
2023-02-24 09:20:34 +08:00
fisker Cheung
24652d9186
Support babel v7.21 ( #14391 )
2023-02-24 08:59:53 +08:00
fisker Cheung and Georgii Dolzhykov
add84358d8
Remove flow plugin from babel parser ( #14314 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2023-02-10 17:27:17 +08:00
fisker Cheung
cf409fe6a4
Clean changelog
2023-02-08 11:19:08 +08:00
fisker Cheung
9842b29ca3
Recognize @satisfies in Closure-style type casts ( #14262 )
2023-02-07 15:19:09 +08:00
Georgii Dolzhykov
cfa5f27afe
Avoid adding unnecessary indent to nested await ( #14192 )
2023-01-20 12:58:44 +02:00
fisker Cheung
0cd7e10447
Merge branch 'main' into next
...
# Conflicts:
# docs/browser.md
# src/language-js/print/literal.js
# src/language-js/print/misc.js
# src/language-js/printer-estree.js
# tests/format/markdown/auto-link/jsfmt.spec.js
# yarn.lock
2023-01-10 09:38:45 +08:00
Sosuke Suzuki
a37ce0b8f6
Clean changelog_unreleased ( #14144 )
...
Clean changelog
2023-01-09 16:48:32 +09:00
fisker Cheung
aaf919014f
Fix comments after directive ( #14081 )
2023-01-07 16:43:44 +08:00
fisker Cheung
acb7354f85
Merge branch 'main' into next
...
# Conflicts:
# src/language-js/needs-parens.js
2023-01-04 16:02:27 +08:00
fisker Cheung
f8e1ad806c
Add parens to head of ExpressionStatement instead of whole statement ( #14077 )
2023-01-04 15:22:12 +08:00
fisker Cheung
468c514ba2
Fix inconsistent between array/tuple and object/record ( #14065 )
2023-01-04 15:07:07 +08:00
fisker Cheung
f65768d00a
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/release/yarn.lock
# src/language-css/parser-postcss.js
# src/language-css/printer-postcss.js
# src/language-js/print/jsx.js
# src/language-json/printer-estree-json.js
# website/yarn.lock
# yarn.lock
2023-01-04 14:25:53 +08:00
fisker Cheung
e301b1f9ce
Fix comments inside JSX attributes ( #14082 )
...
Fixes https://github.com/prettier/prettier/issues/11242
2022-12-30 10:36:58 +08:00
fisker Cheung
9afa8544eb
Merge branch 'main' into next
...
# Conflicts:
# src/language-js/needs-parens.js
2022-12-29 17:50:50 +08:00
fisker Cheung
ef707da0a2
Fix formatting for auto-accessors with comments ( #14038 )
...
Fixes https://github.com/prettier/prettier/issues/14036
2022-12-29 17:17:54 +08:00
Georgii Dolzhykov
201e02e14e
Fix displacing of comments in default switch case ( #14047 )
2022-12-29 10:13:02 +08:00
fisker
a51568db85
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/vendors/vendor-meta.json
# src/language-js/needs-parens.js
# src/language-js/utils/index.js
# tests/format/misc/errors/js/assignment/jsfmt.spec.js
# tests/format/misc/typescript-only/__snapshots__/jsfmt.spec.js.snap
# vendors/chalk.js
# vendors/execa.js
# vendors/mem.js
# vendors/string-width.js
# vendors/tempy.js
# yarn.lock
2022-12-26 10:42:45 +08:00
fisker Cheung and Georgii Dolzhykov
57a109af0a
Add missing parentheses to let in for..of loop ( #14044 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2022-12-23 14:49:01 +08:00
fisker Cheung and Georgii Dolzhykov
a6b6184d75
Add missing parentheses to let ( #14000 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2022-12-22 09:42:03 +08:00
fisker Cheung
52fbecc89b
Merge branch 'main' into next
...
# Conflicts:
# docs/browser.md
# package.json
# yarn.lock
2022-11-23 19:44:31 +08:00
Sosuke Suzuki
9c45de6842
Clean changelog
2022-11-23 14:11:13 +09:00
fisker Cheung
39e5466007
Support "Explicit Resource Management" proposal ( #13752 )
2022-11-14 19:45:27 +08:00
fisker Cheung
1de926ac79
Support "Import Reflection" proposal ( #13771 )
2022-11-07 09:49:35 +08:00
fisker Cheung
6615d07565
Fix template literal indention ( #13621 )
2022-10-13 13:31:06 +08:00
Georgii Dolzhykov
6d4d011252
Fix unstable embedded template literals ( #13532 )
2022-09-26 16:24:41 +03:00
Georgii Dolzhykov
1f46accde5
Support nestled JSDoc comments ( #13445 )
2022-09-13 15:24:45 +03:00
Georgii Dolzhykov
d2a0c778ef
Fix merged line comments ( #13438 )
2022-09-08 09:45:33 +03:00
Georgii Dolzhykov
39a89c6519
Don't break signature of hugged function expression if parameters are identifiers without types ( #13410 )
2022-09-03 17:49:57 +03:00
Georgii Dolzhykov
41ff44e0c6
Refactor, optimize and fix call args expansion ( #13341 )
2022-08-29 14:37:09 +03:00
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