Commit Graph
11047 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
renovate[bot] 8394315a36 Update dependency ci-info to v4.4.0 (#18812)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-31 00:20:00 +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
Marco Wang c24aa46cd9 Support KeyofTypeAnnotation parentheses in Flow (#18801) 2026-01-30 12:32:29 +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
dependabot[bot] 66fba05522 Bump the npm_and_yarn group across 2 directories with 1 update (#18785)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-29 12:35:34 +08:00
renovate[bot] eabe5d5a03 Update dependency flow-parser to v0.299.0 (#18784)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-29 12:19:13 +08:00
Konv Suuandfisker Cheung 9e58cbe5e0 Improve long mapped type to across multiple line in Flow (#18779)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2026-01-29 12:04:43 +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
Konv Suuandfisker Cheung e8413ba558 Add parentheses to conditional types in type parameter constraint (#18760)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2026-01-28 18:01:35 +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
renovate[bot] 51a2a1ec98 Update dependency oxc-parser to v0.111.0 (#18753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 06:47:06 +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