Commit Graph
100 Commits
Author SHA1 Message Date
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 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
fisker Cheung 6f458f46d0 Merge For{Of,In}Statement print (#18815) 2026-01-31 01:26:45 +08:00
fisker Cheung 0d0e103e43 Add test for #11050 (#18814) 2026-01-31 00:55:29 +08:00
fisker Cheung dba734dc12 Preserve blank line before comments above else (#18813) 2026-01-31 00:21:33 +08:00
fisker Cheung af2526357a Don't force comemnts between head and body print on same line (#18808) 2026-01-30 14:59:42 +08:00
fisker Cheung d4f80427db Improve handleIfStatementComments (#18809) 2026-01-30 14:19:19 +08:00
fisker Cheung df65ef94ea Replace adjustClause with printClause (#18807) 2026-01-30 12:46:08 +08:00
fisker Cheung 292a5d0834 Align comment attach in while-like with IfStatements (#18806) 2026-01-30 11:59:47 +08:00
fisker Cheung c23ee2c67a Extract handleIfStatementComments (#18805) 2026-01-30 11:02:02 +08:00
fisker Cheungandautofix-ci[bot] 0844e463c9 Simplify needsHardlineAfterDanglingComment (#18797)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-30 10:55:52 +08:00
fisker Cheung 3ff9bf78d8 Use addBlockOrNotComment in handleIfStatementComments (#18803) 2026-01-30 10:48:53 +08:00
fisker Cheung 549e0cc51b Test HTML-like comments in all parsers (#18800) 2026-01-30 10:20:18 +08:00
fisker Cheung 96546f353f Fix printing comment for the last operand of union types (#18798) 2026-01-30 01:27:45 +08:00
fisker Cheung 52b9fd6331 Use addBlockOrNotComment in handleWhileLikeComments (#18796) 2026-01-30 00:51:51 +08:00
fisker Cheung 46061a160f Print WithStatement the same as WhileStatement (#18795) 2026-01-30 00:11:41 +08:00
fisker Cheung 6966c7e488 Print decorators of ClassExpression on it's own (#18788) 2026-01-29 20:27:28 +08:00
fisker Cheung 92d288e3e7 Support implicit declare in Flow (#18690) 2026-01-29 20:14:52 +08:00
fisker Cheung e52130244a Centralize "class like" children related logic (#18789) 2026-01-29 20:03:37 +08:00
fisker Cheung e82cf92fb4 Add test for #6858 (#18780) 2026-01-29 11:57:22 +08:00
fisker Cheung ce7cee1764 Add tests for #14563 (#18777) 2026-01-29 10:54:13 +08:00
fisker Cheung 229b862bce Keep comments after arrow in body (#18775) 2026-01-29 10:41:35 +08:00
fisker Cheungandautofix-ci[bot] 696134156c Improve stripComments (#18774)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-29 09:39:41 +08:00
fisker Cheung e8bcedaacd Add printTrailingComma (#18773) 2026-01-29 08:52:30 +08:00
fisker Cheung 0fb018ccd5 Extract js utilities (#18772) 2026-01-28 12:36:39 +08:00
fisker Cheungandautofix-ci[bot] 16eb5096b6 Extract code from js utilities (#18770)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-28 10:30:30 +08:00
fisker Cheung 04d90fd5b5 Refactor comment printers to accept filter option (#18768) 2026-01-28 02:58:09 +08:00
fisker Cheung 187680371e Print leading semicolon before type cast comments (#18751) 2026-01-27 22:41:29 +08:00
fisker Cheung add95ce916 Playground: reduce format calls (#18764) 2026-01-27 22:32:40 +08:00
fisker Cheung 26c4d35d61 Move UnaryExpression parens check from parent check to node check (#18767) 2026-01-27 22:26:04 +08:00
fisker Cheung 8ff2c345eb Update internal ESLint rule (#18766) 2026-01-27 22:19:28 +08:00
fisker Cheung 3b93efe979 Extract parentNeedsParentheses (#18765) 2026-01-27 21:53:23 +08:00
fisker Cheung 28b9898816 Playground: Simplify settings passed to worker (#18763) 2026-01-27 19:36:56 +08:00
fisker Cheung 864fc4db40 Refactor playground settings (#18762) 2026-01-27 18:52:05 +08:00
fisker Cheung 657ef1e119 Should format error in comments and doc panel (#18761) 2026-01-27 18:07:35 +08:00
fisker Cheung f58d550470 Refactor node type check functions (#18758) 2026-01-27 12:15:50 +08:00
fisker 8cdcd486ef Fix 2026-01-27 11:51:20 +08:00
fisker Cheung f0ad38b3c9 Extract isTestCall (#18757) 2026-01-27 10:46:43 +08:00
fisker Cheung 48a6e73d5b Improve build script for oxc plugin (#18755) 2026-01-27 08:47:50 +08:00
fisker Cheung a58a070154 Use parseSync from oxc-parser (#18754) 2026-01-27 07:31:01 +08:00
fisker Cheung 68d6990fce Minor refactor to browser prettier setup (#18749) 2026-01-26 01:13:42 +08:00
fisker Cheung 5cbbc008bb Remove global error handler from flow-parser (#18750) 2026-01-26 00:55:16 +08:00
fisker Cheung 157edc3d35 Split different tests in format test (#18748) 2026-01-26 00:09:39 +08:00
fisker Cheung 8fc02d3671 Refactor format test (#18747) 2026-01-25 20:48:49 +08:00
fisker Cheung 7ca5d83e45 Move parser name to end in test title (#18745) 2026-01-25 11:53:51 +08:00
fisker Cheung b23044ec1b Move 3rd-party tests into languages (#18746) 2026-01-25 11:23:53 +08:00
fisker Cheungandautofix-ci[bot] ed5bb0bf62 Refactor tests (#18743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-25 10:30:19 +08:00
fisker Cheung ef46101aa6 Use single astType in postprocess (#18742) 2026-01-25 05:52:41 +08:00
fisker Cheung cc90434c80 Add tests for variable declaration related issues (#18740) 2026-01-24 18:27:37 +08:00
fisker Cheung 3b3f861767 Add test for comments in VariableDeclaration (#18739) 2026-01-24 18:03:04 +08:00