Commit Graph
2342 Commits
Author SHA1 Message Date
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
renovate[bot]andfisker Cheung bd5f91545f Update dependency typescript to v4.8.2 (#13381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-07 21:02:51 +08:00
Georgii Dolzhykov 5766433a62 Get rid of regexp and handle cursor in trim in doc printer (#13426) 2022-09-06 15:57:47 +03:00
Georgii Dolzhykov 2a70ee49a6 Fix leading comments in mapped types with readonly (#13427) 2022-09-06 11:55:11 +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
renovate[bot]andfisker 40ffe244a3 Update dependency espree to v9.4.0 (#13378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-09-03 10:37:05 +08:00
Sosuke Suzuki 40af3ed1ca Keep trailing-comma for var function (#13402)
* Keep trailing-comma for last el

* Make hasComma function

* Fix tests

* Add changelog
2022-08-31 00:59:34 +09:00
Georgii Dolzhykov f5610b8510 Hug object types in function parameters in Flow like in TS (#13396) 2022-08-30 17:38:50 +03:00
fisker Cheung 17cb07665f Improve css/yaml embed traverse (#13294) 2022-08-30 11:00:12 +08:00
Georgii Dolzhykov 41ff44e0c6 Refactor, optimize and fix call args expansion (#13341) 2022-08-29 14:37:09 +03:00
fisker Cheung 4a224a7221 Add print pre-check to handlebars, html, markdown, yaml (#13392) 2022-08-29 18:16:38 +08:00
Georgii Dolzhykov 1ea5c993a0 Fix arrow chain indentation in calls and binaries (#13391) 2022-08-29 12:27:24 +03:00
fisker Cheung 5c465a77b3 Check all types in traverseDoc (#13357) 2022-08-27 18:41:33 +08:00
fisker Cheung d921087d12 Throw errors when too many 'cursor' found in doc (#13339) 2022-08-26 21:33:49 +08:00
fisker Cheung 135a9952d2 Fix snapshot 2022-08-26 10:53:38 +08:00
fisker Cheung 90d836d5ca Update tests 2022-08-26 10:35:34 +08: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
fisker Cheung a166544583 Forbid pass non-node object to print() (#13293) 2022-08-25 19:19:46 +08:00
fisker Cheung edf36039f9 Add test for traverseDoc and findInDoc (#13349) 2022-08-25 01:12:41 +03: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 CheungandGeorgii 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
Gleb DolzhikovandGleb Dolzhikov f2244bdc86 Fix parens in inferred function return types with extends (#13289)
Co-authored-by: Gleb Dolzhikov <9276677@gmail.com>
2022-08-17 18:36:25 +03:00
José Pereiraandfisker Cheung 2d3a274847 fix: extra space between '#' and '{' (#13286)
* fix: extra space between '#' and '{'

* Update src/language-css/printer-postcss.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* adding changelog

* Update 13286.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-08-17 23:32:29 +09:00
fisker Cheung 1a602b590e Fix schema 2022-08-17 17:10:34 +08:00
fisker Cheung 4b4f6cfa4e Update support info 2022-08-17 17:03:46 +08:00
fisker Cheung 5fa0802315 Add getVisitorKeys (#13255) 2022-08-17 09:47:08 +08:00
fisker Cheung 86424ccc22 Remove the parsers argument for plugin.parsers.parse (#13268) 2022-08-16 09:52:27 +08:00
Georgii Dolzhykov 17081e6cf6 Support decorated function pattern (#10714) 2022-08-08 21:57:19 +03:00
renovate[bot]andSosuke Suzuki 6b390a9a23 Update dependency meriyah to v4.3.0 (#13247)
* Update dependency meriyah to v4.3.0

* Update tests

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-08-08 23:27:18 +09:00
renovate[bot]andfisker Cheung 02484b41de Update dependency @babel/parser to v7.18.11 (#13239)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-08-08 19:14:01 +08:00
fisker Cheung f8fff81005 Print HTML5 doctype in lowercase (#7391) 2022-08-08 01:13:18 +08:00
fisker Cheung 18a31ebc7e Merge branch 'main' into next 2022-08-08 01:11:08 +08:00
fisker CheungandGeorgii Dolzhykov 0b9cb96f58 Remove support for custom parser api (#13250)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-08-08 01:09:10 +08:00
t-mangoeandSosuke Suzuki 00ec91bfde Added condition for '+' case. (#13115)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-08-08 01:08:28 +08:00
fisker Cheung 3e9e9ddec7 Imporve error message for InvalidDocError (#13248) 2022-08-07 14:13:03 +03:00
fisker Cheung 7abc9bcb07 Remove stripTrailingHardline option in textToDoc (#13220) 2022-08-07 18:15:24 +08:00
fisker Cheung dd034ec127 Fix test on local (#13234) 2022-08-07 00:15:54 +03:00
Georgii Dolzhykovandfisker Cheung 4d5b645e0e Support async parser for embedded languages (#13211)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-08-07 00:45:06 +08:00
fisker Cheung 31cdcd0487 Sort plugin default values when create usage (#13230) 2022-08-06 22:03:37 +08:00
fisker Cheung 33e621133c Remove prettier.doc.builders.concat (#13203) 2022-08-06 11:03:47 +08:00
fisker Cheung 5aadab6f28 Support ESM plugins (#13201) 2022-08-06 10:42:27 +08:00
fisker Cheung e096ea7552 Use try/finally in AstPath (#13216) 2022-08-05 21:58:54 +08:00
fisker Cheung d4a49e2441 Minor refactor to cosmiconfig search (#13205) 2022-08-03 14:20:02 +08:00
fisker Cheung 55779bb96c Refactor CLI tests (#13208) 2022-08-03 14:19:00 +08:00
fisker Cheung cdb1494170 Revert "Switch print/embed to async (#13104)" (#13210) 2022-08-02 18:11:34 +08:00
Sosuke Suzuki b12396d69a Change --loglevel to --log-level (#13204)
* Change `--loglevel` to `--log-level`

* Update tests

* Update docs

* Add changelog
2022-08-02 09:39:41 +09: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
fisker Cheung 44d246a2a2 Support config file in ESM (#13130) 2022-08-01 10:51:31 +08:00