Commit Graph
100 Commits
Author SHA1 Message Date
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
fisker Cheungandautofix-ci[bot] 2d3b846607 Print semicolon before type assertion (#18738)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 17:50:44 +08:00
fisker Cheung 35a7f3027b Ignore semicolon in import/export declarations (#18737) 2026-01-24 17:13:54 +08:00
fisker Cheung 495ed200ae Exclude semicolon from range of ExpressionStatement (#18736) 2026-01-24 16:14:17 +08:00
fisker Cheung 2b6c9fe2e7 Fix range of IfStatement (#18735) 2026-01-24 14:17:02 +08:00
fisker Cheung 4531e18f75 Exclude semicolon from range of VariableDeclaration (#18734) 2026-01-24 13:42:03 +08:00
fisker Cheung 56860a7c58 Refactor massageAst releated code (#18733) 2026-01-24 11:06:44 +08:00
fisker Cheung 183c115148 Keep comments in mapped type inline (#18731) 2026-01-24 10:17:31 +08:00
fisker Cheung 8a8fefa580 Improve format of member chain with ChainExpression (#18729) 2026-01-24 04:53:28 +08:00
fisker Cheung 0268fdbce5 Add filename to flow parse options (#18727) 2026-01-23 17:32:22 +08:00
fisker a1c271f39d Skip puppeteer installation 2026-01-23 17:05:03 +08:00
fisker Cheung 4b242386f5 Remove dead code (#18723) 2026-01-23 15:30:01 +08:00
fisker Cheung 7d80579f09 Check AST shape instead of parser (#18724) 2026-01-23 10:03:50 +08:00
fisker Cheung 6690ebd09b Fix member chain print (#18720) 2026-01-23 06:36:13 +08:00
fisker Cheung 108c3f5c94 Add test for ChainExpression in optional chaining (#18713) 2026-01-23 05:37:37 +08:00
fisker Cheung 2e230f99e7 Run AST compare test on verify parsers (#18712) 2026-01-23 04:47:51 +08:00
fisker Cheung b5a3bf3d6e Enable jest/prefer-strict-equal rule (#18714) 2026-01-22 23:53:24 +08:00
fisker Cheung ad9db7786e Add tests for Flow records (#18709) 2026-01-22 02:08:17 +08:00
fisker 99a18d762f Remove released changelog 2026-01-22 01:49:37 +08:00
fisker 1ead471b28 Merge branch 'v3.8.x' 2026-01-22 01:47:29 +08:00
fisker 07d67240f7 Bump Prettier dependency to 3.8.1 2026-01-22 01:46:28 +08:00
fisker 8b4a53ab3d Clean changelog_unreleased 2026-01-22 01:45:33 +08:00
fisker 90983f40dc Release 3.8.1 2026-01-22 01:43:10 +08:00
fisker Cheung 2322275644 Refactor printKey (#18708) 2026-01-22 00:43:01 +08:00
fisker Cheung e4804b1439 Respect quoteProps in method signature (#18702) 2026-01-21 11:59:21 +08:00
fisker Cheung 8b84f37de0 Fix quoteProps option check in enum (#18703) 2026-01-21 11:57:38 +08:00
fisker Cheung d28dd89e41 Respect quoteProps in enum (#18700) 2026-01-21 11:26:43 +08:00
fisker Cheung 367bad7975 Simplify enum member print (#18701) 2026-01-21 11:00:03 +08:00
fisker Cheung 4d550349fe Extract printKey (#18699) 2026-01-21 10:08:06 +08:00
fisker Cheung 6eb35e3bd7 Remove printEnumMembers and printEnumBody (#18698) 2026-01-21 09:54:32 +08:00
fisker Cheung b4761d1ffb Add test for #11273 (#18694) 2026-01-21 09:06:39 +08:00
fisker Cheung 082e8512df Add test for #13079 (#18693) 2026-01-21 09:01:22 +08:00
fisker Cheung 29c3f97dec Keep ChainExpression AST unchanged (#18661) 2026-01-21 08:26:02 +08:00
fisker Cheung 9ebc4a7142 Remove an invalid test case (#18692) 2026-01-21 02:02:12 +08:00
fisker Cheung cc7c47455e Forbid type parameters on constructor (#18686) 2026-01-20 21:59:28 +08:00
fisker Cheung 1487718705 Forbid required type after optional type in tuple (#18685) 2026-01-20 21:50:07 +08:00
fisker Cheung 929e7ae1e6 Remove color from languages (#18681) 2026-01-19 07:45:44 +08:00
fisker Cheung 7c7b2e2ef8 Print semicolon for prettier-ignored {Break,Continue}Statement (#18678) 2026-01-18 18:56:56 +08:00
fisker 0027e5b6cc Remove useless break 2026-01-18 08:33:43 +08:00
fisker Cheung 42d384d148 Remove useless optional chaining (#18677) 2026-01-18 08:32:47 +08:00
fisker Cheung 719373fb75 Move BreakStatement ContinueStatement location override to locEnd (#18675) 2026-01-18 07:47:54 +08:00
fisker Cheung 93f0ff3910 Add tests for comments around break and continue (#18673) 2026-01-18 03:03:45 +08:00
fisker Cheung 68b64f2aa3 Check AST shape instead of parser (#18672) 2026-01-18 02:51:15 +08:00
fisker 0bc2286c9d Another place 2026-01-18 02:23:34 +08:00
fisker Cheung 7f5c18d719 Minor refactor to function print (#18671) 2026-01-18 02:08:47 +08:00
fisker Cheung e11a16a881 Reuse isCallOrNewExpression (#18670) 2026-01-18 01:48:59 +08:00
fisker Cheung 62309811c0 Fix inconsistent comment attach between NewExpression and CallExpression (#18669) 2026-01-18 01:30:03 +08:00
fisker Cheung 18ababcd50 Review isMemberExpression check (#18666) 2026-01-17 23:00:02 +08:00
fisker Cheung 0cc4861cc4 Remove suppressDeprecatedPropertyWarnings in typescript parser (#18664) 2026-01-17 12:20:52 +08:00
fisker Cheung 38fb00bfc9 Revert "Use prettier.prettier-vscode instead of the legacy one (#18374) (#18662) 2026-01-17 09:48:35 +08:00
fisker Cheung 22032d5aa4 Review ChainExpression check (#18659) 2026-01-17 04:46:43 +08:00
fisker Cheung 5ce41ed535 Don't skip ChainExpression in isCallExpression (#18654) 2026-01-16 20:08:01 +08:00
fisker Cheung ece892d6f0 Don't skip ChainExpression in isMemberExpression (#18652) 2026-01-16 11:10:47 +08:00
fisker Cheung a797d40e2f Playground: Display panel name (#18651) 2026-01-16 09:50:55 +08:00