Commit Graph
100 Commits
Author SHA1 Message Date
fisker Cheung 6e85d4a785 Remove arrow function return type check (#18589) 2026-01-14 06:56:11 +08:00
fisker Cheung ad633008b4 Angular 21.1: Support spread element in array and object literals (#18596) 2026-01-14 05:13:21 +08:00
fisker Cheung 5fff8e7959 Extract printDanglingCommentsInList (#18626) 2026-01-14 05:10:23 +08:00
fisker Cheung 9c13ac1572 Rename handleLastFunctionArgComments (#18625) 2026-01-14 04:44:36 +08:00
fisker Cheung ae14f16f86 Fix dangling comment print in function parameters (#18623) 2026-01-14 03:53:42 +08:00
fisker Cheung 8c310eef6f Refactor handleCommentInEmptyParens (#18624) 2026-01-14 03:00:25 +08:00
fisker Cheung c7e6ea813d Refactor dangling comment attach in arrow function (#18622) 2026-01-14 01:45:12 +08:00
fisker Cheung 204731adeb Add possible node types (#18621) 2026-01-14 01:42:32 +08:00
fisker Cheung e636454118 Improve comments around type arguments print (#18620) 2026-01-14 00:39:00 +08:00
fisker Cheung 1b36f27d8e Improve comment print inside type arguments (#18619) 2026-01-13 22:40:49 +08:00
fisker Cheung 7733de931e Improve comment handling around calls without arguments (#18615) 2026-01-13 21:40:22 +08:00
fisker Cheung 78ff25b5cf Don't force array/object with short block comment to break (#18617) 2026-01-13 20:47:40 +08:00
fisker Cheung 3b9ecca4d9 Don't treat Flow inexact tuples as empty (#18616) 2026-01-13 19:15:36 +08:00
fisker Cheung 09ce948ee3 Clean standalone build script (#18614) 2026-01-13 05:45:06 +08:00
fisker Cheung 7e1b10be3a Allow GraphQL Types that implement many interfaces to break (#18582) 2026-01-13 02:18:51 +08:00
fisker Cheung 7a76a9b119 Fix GraphQL dangling comment print (#18581) 2026-01-13 02:18:04 +08:00
fisker Cheung 360b8681d9 Don't create shared reference for empty visitor keys (#18610) 2026-01-13 02:16:12 +08:00
fisker Cheung d2d34ee619 Refactor wrapExpression (#18607) 2026-01-13 00:15:13 +08:00
fisker Cheung 05c6090176 Build: mark polyfills pure (#18601) 2026-01-10 15:07:34 +08:00
fisker Cheung 797e260d36 Import graphql directly (#18599) 2026-01-10 13:49:16 +08:00
fisker Cheung 32114b760c Website: collect dependencies with package-dependencies-tree (#18591) 2026-01-09 04:46:45 +08:00
fisker Cheung 98ed9261a7 Add test for #6215 (#18590) 2026-01-09 02:48:30 +08:00
fisker fa68b2b74f Tweak renovate.json5 2026-01-06 02:23:55 +08:00
fisker Cheung c9342890af Switch to narrow-emojis (#18531) 2026-01-06 00:03:44 +08:00
fisker Cheung 67ac362bbe Website: reduce PrettierFormat props (#18573) 2026-01-05 18:47:11 +08:00
fisker Cheung 2b88ed7976 Website: refactor prettier worker (#18572) 2026-01-05 17:51:47 +08:00
fisker Cheung cbcc5e4959 Website: convert editorState to js module (#18570) 2026-01-05 17:33:29 +08:00
fisker Cheung d696f899ac Minor tweak to builtin plugins generation (#18566) 2026-01-05 05:20:16 +08:00
fisker Cheung 58ff4642dd Add PrintResult for doc printer (#18372) 2026-01-02 13:41:28 +08:00
fisker 632d498744 Remove useless group from renovate config 2025-12-31 05:40:02 +08:00
fisker 2973904583 Group devDependencies in renovate config 2025-12-31 05:25:18 +08:00
fisker Cheung e94577b0c7 Website: improve handlebars language support (#18554) 2025-12-31 03:06:26 +08:00
fisker Cheung 1c49bedbee Refactor website CDN url replacements (#18553) 2025-12-31 02:17:06 +08:00
fisker Cheung 65e600a539 Use cm6-graphql from CDN (#18552) 2025-12-31 00:01:20 +08:00
fisker Cheung 8903d89377 Update @codemirror/view to latest (#18550) 2025-12-30 23:43:25 +08:00
fisker Cheung 8ad3204bf0 Improve codemirror language support (#18549) 2025-12-30 17:11:09 +08:00
fisker Cheung f3b0a5eea1 Website: put all components inside app (#18547) 2025-12-30 17:10:45 +08:00
fisker Cheung 26321b02f8 Add a section about AI usage in CONTRIBUTING.md (#18543) 2025-12-30 15:48:56 +08:00
fisker Cheung f19a0581c7 Use CDN files on website (#18545) 2025-12-30 14:14:17 +08:00
fisker Cheung 1ce53af15b Disable module <identifier> test on babel-ts parser (#18544) 2025-12-30 02:48:24 +08:00
fisker Cheung 33ae836128 Treat template literal tag as IIFE (#18541) 2025-12-30 00:12:32 +08:00
fisker Cheungandautofix-ci[bot] 68861ae531 Fix dangling comment detection in function parameters and call arguments (#18540)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-29 19:52:29 +08:00
fisker Cheung 26facc7f30 Improve readability of "group" print with an IIFE (#18537) 2025-12-29 18:47:16 +08:00
fisker Cheung e2806a30b2 Keep iife function comments in parentheses (#18538) 2025-12-29 18:46:45 +08:00
fisker Cheung 88ffc016db Fix linebreak in member chain (#17251) 2025-12-29 15:25:29 +08:00
6c339cd882 Upgrade to latest micromark (markdown only) (#18277)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: seiya <20365512+seiyab@users.noreply.github.com>
2025-12-26 19:43:49 +08:00
fisker Cheung 64484a41be Support formatting angular syntax in markdown (#18519) 2025-12-25 20:42:58 +08:00
fisker Cheungandautofix-ci[bot] b7055dbfb4 Run browser tests on UMD version (#18526)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-25 00:08:21 +08:00
fisker Cheung 06a73b700b Run tests in browser (#18521) 2025-12-24 22:57:02 +08:00
fisker Cheung cd0c3292d3 Minor refactor to markdown embed print (#18518) 2025-12-23 13:27:40 +08:00
fisker Cheung cc243fe154 Fix lock-threads (#18517) 2025-12-23 01:03:01 +08:00
fisker Cheung 0b16f5d339 Prevent attaching comment to non-printable child of shorthand {Import,Export}Specifier (#18510) 2025-12-22 10:19:31 +08:00
fisker Cheung c9eb4bcd9e Remove useless u flags in regular expressions (#18509) 2025-12-21 23:44:08 +08:00
fisker Cheung 97f2e81d06 Rewrite nested ternaries (#18508) 2025-12-21 18:07:47 +08:00
fisker Cheung 9bf7f1b971 Consistent formatting for "new expression" with type cast (#18507) 2025-12-21 16:54:45 +08:00
fisker Cheung ac6875153c Exclude production plugin entry from coverage report (#18484) 2025-12-15 03:11:24 +08:00
fisker Cheung 5cc3c26c46 Remove static import of plugins from bundled Prettier entry (#18483) 2025-12-15 01:39:44 +08:00
fisker Cheung 01363e7310 Refactor builtin plugins creation (#18481) 2025-12-14 23:22:28 +08:00
fisker a5684d0aaf Fix import path in markdown printer 2025-12-14 04:32:59 +08:00
fisker Cheung 9541af3087 Restructure markdown plugin (#18479) 2025-12-14 04:17:23 +08:00
fisker Cheungandautofix-ci[bot] 1a3ef69056 Fix bugs when replacing characters with space (#18455)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-12 04:08:37 +08:00
8a0f687f6e Refactor playground to use Vue (#18463)
Co-authored-by: fisker <172584+fisker@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-12-10 23:48:10 +08:00
fisker Cheung 1cc6367856 Update renovate.json5 (#18457) 2025-12-10 03:49:54 +08:00
fisker Cheung a9c0ce927b Replace editorconfig with editorconfig-without-wasm (#18452) 2025-12-09 23:21:27 +08:00
fisker Cheung 8cd31f577c Add gfm-test-suite (#18445) 2025-12-08 10:48:49 +08:00
fisker Cheung 8ee96d64e5 Switch to commonmark-test-suite (#18444) 2025-12-08 10:18:39 +08:00
fisker Cheung 88a41df74f Use isReturnOrThrowStatement (#18440) 2025-12-07 18:21:52 +08:00
fisker Cheung 2f2faa92c4 Extract type guard functions to node-types.js (#18439) 2025-12-07 18:12:31 +08:00
fisker Cheung 1fa465679c Fix ts estree type definition (#18438) 2025-12-07 16:50:35 +08:00
fisker Cheung 576f952997 Fix flow estree type definition (#18437) 2025-12-07 16:02:13 +08:00
fisker Cheung 94a8634300 Further improve ESTree type definition (#18436) 2025-12-07 08:12:46 +08:00
fisker Cheung dc1c55b223 Improve ESTree type definition (#18435) 2025-12-07 07:20:19 +08:00
fisker Cheung 7b66b5ed88 Remove Experimental{Rest,Spread}Property from visitorKeys (#18433)
Remove `ExperimentalRestProperty` and `ExperimentalSpreadProperty` from visitorKeys
2025-12-06 19:24:38 +08:00
fisker Cheung 1f6ba74b87 Extract shouldAddParenthesesToIdentifier (#18432) 2025-12-06 17:46:42 +08:00
fisker Cheung b6cf29f3d0 Remove redundant parentheses around SequenceExpression and AssignmentExpression (#18142) 2025-12-06 17:10:37 +08:00
fisker Cheung bdab9d8845 Extract printReturnStatement (#18431) 2025-12-06 16:51:31 +08:00
fisker CheungandAlexander Kachkaev 74366fcf1d Preserve number and string representation in json-stringify parser (#18405)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2025-12-06 14:47:35 +08:00
fisker Cheung a7b8a4f77d Avoid linebreaks in embedded template interpolations (#18380) 2025-12-06 14:45:25 +08:00
fisker Cheung d8bf3989bd Update docs to encourage user import plugin themself (#18411) 2025-12-06 14:43:36 +08:00
fisker CheungandAlexander Kachkaev 374138ac6b Improve if condition break (#18401)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2025-12-06 14:39:00 +08:00
fisker Cheung ce664cce5c Add test for commonmark spec (#18428) 2025-12-06 00:24:51 +08:00
fisker Cheungandrenovate[bot] 7dc8894993 Add test for --debug-benchmark flag (#18410)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-05 21:05:51 +08:00
fisker Cheung 0e9d67c965 Remove lint step from release script (#18415) 2025-12-05 21:04:19 +08:00
fisker Cheung f6bd3cbd8a Rewrite build script (#18427) 2025-12-05 04:53:15 +08:00
fisker 7af999c205 Fix typo 2025-12-03 12:39:37 +08:00
fisker a3181436d9 Merge branch 'v3.7' 2025-12-03 12:39:01 +08:00
fisker 3a88525d48 Bump Prettier dependency to 3.7.4 2025-12-03 12:37:53 +08:00
fisker ddfa283b0d Clean changelog_unreleased 2025-12-03 12:37:14 +08:00
fisker 7848357af6 Release 3.7.4 2025-12-03 12:33:49 +08:00
fisker 7686c59d51 Release @prettier/plugin-hermes & @prettier/plugin-oxc v0.1.3 2025-12-03 12:31:34 +08:00
fisker Cheung 030e43ebf2 Use prettier.prettier-vscode instead of the legacy one (#18374) 2025-12-02 22:15:30 +08:00
fisker Cheung c1e72d0b95 Forbid invalid parameter properties (#18318) 2025-12-02 20:01:12 +08:00
fisker Cheung edb53db4b1 Move code (#18399) 2025-12-02 06:49:28 +08:00
fisker Cheung 9b8f6e86ac Avoid double parentheses around logical expression (#18397) 2025-12-02 06:00:26 +08:00
fisker Cheung fe494348a0 Remove dead code checking union/intersection types length (#18396) 2025-12-02 03:24:45 +08:00
fisker Cheung ca02b37489 Fix unstable comment print (#18395) 2025-12-02 03:24:17 +08:00
fisker Cheung 7efb988c67 Fix comment in union type get duplicated (#18393) 2025-12-02 01:46:31 +08:00
fisker Cheung 706aa4ef90 Switch js parse postprocess to onEnter (#18382) 2025-12-01 19:36:05 +08:00
fisker Cheung d3eb2b2d08 Reuse arrays in visitor keys (#18386) 2025-12-01 19:33:56 +08:00
fisker Cheung 363a20e1c1 Improve getPreferredQuote (#18366) 2025-12-01 08:37:51 +08:00