Commit Graph
100 Commits
Author SHA1 Message Date
fisker Cheung 2eaad40bb2 Revert "Print ; for module declaration and declare function" (#18852) (#19333) 2026-06-10 09:22:01 +08:00
fisker Cheung 94c71e346f Remove extra parens around optional return type (#19331) 2026-06-10 08:28:51 +08:00
fisker Cheung 9c5fd587b9 Remove extra parens around ternary (#19330) 2026-06-10 06:29:16 +08:00
fisker Cheung e76e746131 Remove extra parens around jsx (#19329) 2026-06-10 06:10:50 +08:00
fisker 1cb7fcb3b1 Cleanup 2026-06-09 19:40:21 +08:00
fisker aa9c17742f Merge branch 'v3.8.x'
# Conflicts:
#	scripts/release/steps/show-instructions-after-npm-publish.js
#	src/language-markdown/print/children.js
#	tests/format/markdown/commonmark-test-suite/__snapshots__/format.test.js.snap
#	tests/format/markdown/list/__snapshots__/format.test.js.snap
#	tests/format/mdx/mdx/__snapshots__/format.test.js.snap
2026-06-09 19:36:36 +08:00
fisker 8b4eb339d4 Bump Prettier dependency to 3.8.4 2026-06-09 19:32:43 +08:00
fisker e9cbdfa1b7 Clean changelog_unreleased 2026-06-09 19:31:44 +08:00
fisker 1c6ba55391 Release 3.8.4 2026-06-09 19:28:10 +08:00
fisker Cheung e8900da916 Remove extra group around object properties (#19310) 2026-06-08 20:46:59 +08:00
fisker Cheung 4918a06e32 Add regression test for object type (#19309) 2026-06-08 19:42:27 +08:00
fisker Cheungandautofix-ci[bot] 3149f353d7 Enable unicorn/prefer-string-repeat rule (#19306)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-08 18:16:28 +08:00
fisker Cheung c81bb54b5f Evaluate graphql visitor keys (#18583) 2026-06-06 11:21:39 +08:00
fisker Cheung 8cb163504a GraphQL: Support "Fragment arguments" (#19297) 2026-06-05 19:39:29 +08:00
fisker Cheung 6b0bc8e6d4 Extract code for GraphQL printer (#19298) 2026-06-05 19:19:30 +08:00
fisker Cheung 2e2a23fa08 Update GraphQL to v17 (#19175) 2026-06-05 18:49:38 +08:00
fisker Cheung 61b473aacb Add test for #4032 (#19296) 2026-06-05 17:37:05 +08:00
fisker Cheung 96f7a375bd Fix edge cases for parentheses in new expressions (#19295) 2026-06-05 17:16:35 +08:00
fisker Cheung 91f155f7f5 Support formatting LWC syntax in markdown (#19291) 2026-06-04 18:19:19 +08:00
fisker Cheung 527180393c Add note to follow PR template, add checklist for AI acknowledgment (#19289) 2026-06-04 18:00:37 +08:00
fisker Cheung 3b1acf2dea Improve formatting of leading comment of union type (#19288) 2026-06-04 17:16:15 +08:00
fisker Cheung ffcfe0efbb Do not expand object type with inline comments (#19287) 2026-06-04 16:51:53 +08:00
fisker Cheung cecb09abac Further improve handleParenthesizedExpressionTrailingComment (#19282) 2026-06-04 03:02:00 +08:00
fisker Cheung 296fbe6b7f Improve handleParenthesizedExpressionTrailingComment (#19281) 2026-06-04 02:22:52 +08:00
fisker Cheung d9e261f836 Enable tests fixed in yaml-test-suite (#19275) 2026-06-03 07:38:31 +08:00
fisker Cheung 121d0d3dd9 Revert "Fix unstable comments around parenthesized expressions (#19273)" (#19274) 2026-06-03 07:24:36 +08:00
fisker Cheung 794ca266a9 Fix unstable comments around parenthesized expressions (#19273) 2026-06-03 07:09:11 +08:00
fisker Cheung 75c46513c9 Reject declare class field with initializer (babel-ts) (#19272) 2026-06-03 07:07:55 +08:00
fisker Cheung 5c43df8963 Update yarn to v4.16 (#19268) 2026-06-03 01:46:24 +08:00
fisker Cheung 8d63dddaaa Update to yaml@2 (#18419) 2026-06-01 10:18:29 +08:00
fisker Cheung 1f1230ff8c Simplify configuration search (#19237) 2026-05-29 03:59:07 +08:00
fisker Cheung 0541e174a3 Add getOrInsertComputed and getOrInsert utilities (#19219) 2026-05-28 10:18:35 +08:00
fisker Cheung ccf365cfad Remove esm-utils from scripts (#19227) 2026-05-28 01:45:35 +08:00
fisker Cheung cf07f287e5 Update changelog related scripts (#19226) 2026-05-28 01:26:59 +08:00
fisker Cheung d33a1b0bc0 Move tests to correct location (#19223) 2026-05-27 18:20:23 +08:00
fisker Cheung c018e68c5e Refactor Object.{groupBy,hasOwn}() transform (#19218) 2026-05-27 15:19:05 +08:00
fisker Cheung 6ec71b6463 Use Object.groupBy() (#19217) 2026-05-27 14:30:27 +08:00
fisker Cheung 807e080c2c Require Node.js 22 for development build (#19216) 2026-05-27 08:21:18 +08:00
fisker Cheung 7a3737e1bf Refresh yarn.lock (#19213) 2026-05-27 07:05:43 +08:00
fisker Cheung 8adab11211 Unwrap fill with single part in cleanDoc (#13350) 2026-05-27 06:24:09 +08:00
fisker Cheung 4025d3e226 Avoid unnecessary semicolon before call signatures (#19212) 2026-05-27 06:10:32 +08:00
fisker Cheung e3e7ba0091 Update yarn to v4.15 (#19209) 2026-05-27 02:28:59 +08:00
fisker Cheung 5d7f64ef5b Disallow decorators on abstract/declare fields (#19210) 2026-05-27 02:28:30 +08:00
fisker Cheung e3d23c2cef Remove attached comments clean (#18721) 2026-05-27 02:25:26 +08:00
fisker Cheung b83cb29216 Add test for #19052 (#19207) 2026-05-27 00:36:27 +08:00
fisker Cheung c3556d9d5c Run tests on Node.js 26 (#19117) 2026-05-20 11:23:45 +08:00
fisker 9566ca8c55 Ignore get-stdin v10 in renovate.json5 2026-05-20 00:31:50 +08:00
fisker Cheung c2dd5fd9bf Remove mark-issue-duplicate workflow temporarily (#19178) 2026-05-20 00:26:43 +08:00
fisker Cheung afb9c080bd Refresh yarn.lock (#19174) 2026-05-19 21:36:58 +08:00
fisker Cheung aad6e28198 Simplify printDirectives() (#19173) 2026-05-19 21:27:39 +08:00
fisker Cheung 55cf414c14 Remove redundant line (#19168) 2026-05-19 04:39:05 +08:00
fisker Cheung 69ed5dad2a Fix code frames for glimmer and hermes parser (#19163) 2026-05-19 02:58:09 +08:00
fisker Cheung 6e51c5ef38 Update yarn to v4.14 (#19126) 2026-05-07 21:44:22 +08:00
fisker Cheung 906406f7ea Enable using tests for hermes parser (#18961) 2026-04-29 16:15:38 +08:00
fisker Cheung 074aaedbb0 Replace main branch in changelog link with tags (#19054) 2026-04-15 09:18:33 +08:00
fisker Cheung 946065810a Replace main branch in changelog link with tags (#19054) 2026-04-15 09:17:38 +08:00
fisker 8c7e6d4338 Merge branch 'v3.8.x'
# Conflicts:
#	tests/format/scss/function/__snapshots__/format.test.js.snap
2026-04-15 09:05:23 +08:00
fisker c22a003ae9 Bump Prettier dependency to 3.8.3 2026-04-15 08:58:58 +08:00
fisker 07bad1f045 Clean changelog_unreleased 2026-04-15 08:57:11 +08:00
fisker d7108a79ec Release 3.8.3 2026-04-15 08:53:50 +08:00
fisker 1c5e5b4c66 Merge branch 'v3.8.x'
# Conflicts:
#	yarn.lock
2026-04-15 08:46:42 +08:00
fisker 1cd40668c3 Release @prettier/plugin-oxc@0.1.4 2026-04-15 08:41:51 +08:00
fisker a8700e2450 Update oxc-parser to v0.125.0
Fixes #19048
2026-04-15 08:40:39 +08:00
fisker 752157c78e Fix tests 2026-04-15 08:36:48 +08:00
fisker Cheung b4489dc05f Update flow parser to v0.307.0 (#19038) 2026-04-10 11:49:06 +08:00
fisker Cheung 5638eb6966 Update yarn to 4.13.0 (#19037) 2026-04-10 11:19:40 +08:00
fisker Cheung 2fa378f867 Enable decorator tests for hermes parser (#18960) 2026-04-10 11:19:30 +08:00
fisker Cheung f0cb1294bc Update hermes-parser to v0.35.0 (#19036) 2026-04-10 10:59:06 +08:00
fisker 4d42f87154 Merge branch 'v3.8.x'
# Conflicts:
#	package.json
#	src/language-js/print/function-parameters.js
#	tests/format/angular/control-flow/__snapshots__/format.test.js.snap
#	yarn.lock
2026-04-10 10:42:45 +08:00
fisker 053fd418e1 Bump Prettier dependency to 3.8.2 2026-04-10 10:32:29 +08:00
fisker 904c6365ec Clean changelog_unreleased 2026-04-10 10:31:18 +08:00
fisker dc1f7fcc50 Update dependents count 2026-04-10 10:31:12 +08:00
fisker b31557cf33 Release 3.8.2 2026-04-10 10:28:07 +08:00
fisker Cheung 96bbaeda05 Support Angular v21.2 (#18722) 2026-04-10 10:24:28 +08:00
fisker Cheung 881360b92b Support default never in Angular v21.2 (#19034) 2026-04-10 10:19:53 +08:00
fisker Cheung 384cf33671 Support Angular v21.2 (#18722) 2026-04-10 10:03:27 +08:00
fisker Cheung 375f3347b1 Support default never in Angular v21.2 (#19034) 2026-04-10 09:49:52 +08:00
fisker Cheung 1038b1231b Use sourceType: commonjs in acorn parser (#18906) 2026-03-05 01:26:48 +08:00
fisker Cheung 78361fddee Remove build script for Espree (#18903) 2026-03-01 04:12:55 +08:00
fisker Cheung d9f17966ef Group acorn and espree update (#18902) 2026-03-01 04:04:29 +08:00
fisker 456d14dbc2 Add missing flow parser in playground 2026-02-14 02:23:52 +08:00
fisker 032ce13749 Fix process.env.PULL_REQUEST check 2026-02-05 22:37:56 +08:00
fisker Cheung efcc72d91b Exclude semicolon from control flow statements (#18856) 2026-02-05 10:37:26 +08:00
fisker Cheung 0eda012bcb Print ; for module declaration and declare function without body (#18852) 2026-02-05 10:19:28 +08:00
fisker Cheungandautofix-ci[bot] 5d0e890a50 Exclude semicolon from DoWhileStatement (#18851)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-03 21:26:09 +08:00
fisker Cheung 11c31c6b61 Centralize logic for excluding semicolon from node range (#18850) 2026-02-03 12:31:38 +08:00
fisker Cheung 6f1d135768 Extract logic related to js node location (#18849) 2026-02-03 08:59:13 +08:00
fisker Cheung f0a706d88b Exclude semicolon from {Return,Throw}Statement (#18848) 2026-02-03 00:06:57 +08:00
fisker Cheung b801e10ec7 Improve semicolon check in printVariableDeclaration (#18845) 2026-02-02 23:12:23 +08:00
fisker Cheungandautofix-ci[bot] 12dfde1fce Add printSemicolon (#18841)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-02 22:18:20 +08:00
fisker Cheung 91625a1220 Clean js plugins (#18839) 2026-02-02 20:16:09 +08:00
fisker Cheung 5f88a9314f Fix comments not printed error in debugger statement (#18840) 2026-02-02 20:15:31 +08:00
fisker Cheung 8e6137818d Prevent moving trailing comment in class properties (#18837) 2026-02-02 18:31:13 +08:00
fisker Cheung 6c0e2bcc52 Prevent crash on website with malformed url (#18836) 2026-02-02 18:08:55 +08:00
fisker Cheung c65761ac3a Align leading comment of union type elements (#18833) 2026-02-02 16:04:17 +08:00
fisker Cheung a16e57de94 Simplify union type print (#18831) 2026-02-02 14:31:54 +08:00
fisker Cheung 60cf4bd86e Rewrite union type print (#18827) 2026-02-02 03:46:49 +08:00
fisker Cheungandautofix-ci[bot] 2b8a924a13 Rename file (#18826)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-01 23:27:18 +08:00
fisker Cheung 8d74ddeccd Work after babel upgrade to v8.0.0-rc1 (#18823) 2026-02-01 09:57:39 +08:00
fisker Cheung 5017d66ea7 Test: Update printWidth indicator (#10293) 2026-01-31 03:45:41 +08:00