Commit Graph
96 Commits
Author SHA1 Message Date
fisker Cheung 5017d66ea7 Test: Update printWidth indicator (#10293) 2026-01-31 03:45:41 +08:00
Marco Wang c24aa46cd9 Support KeyofTypeAnnotation parentheses in Flow (#18801) 2026-01-30 12:32:29 +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 92d288e3e7 Support implicit declare in Flow (#18690) 2026-01-29 20:14:52 +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
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 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
Christopher Chedeauandfisker Cheung 599bad1415 Fix parenthesis for optional function as return type (#11004)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2026-01-25 05:03:35 +08:00
fisker Cheung ad9db7786e Add tests for Flow records (#18709) 2026-01-22 02:08:17 +08:00
fisker Cheung d28dd89e41 Respect quoteProps in enum (#18700) 2026-01-21 11:26:43 +08:00
fisker Cheung b1c75ac9ad Improve dangling comment handling in flow components (#18629) 2026-01-15 04:04:39 +08:00
fisker Cheung b0ffc1208d Add test for comments in hookTypeAnnotation (#18631) 2026-01-15 03:35:07 +08:00
fisker Cheung 4cfb8bc9b8 Improve dangling comment handling in flow hooks (#18630) 2026-01-15 03:01:56 +08:00
renovate[bot]andfisker 48f7598e57 Update flow-parser (#18598)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2026-01-15 01:44:39 +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
George Zaharievandfisker 38745522e3 Support for Flow match instance patterns and Flow records (#18511)
Co-authored-by: fisker <lionkay@gmail.com>
2025-12-30 05:24:56 +08:00
fisker Cheung 88ffc016db Fix linebreak in member chain (#17251) 2025-12-29 15:25:29 +08:00
renovate[bot]andfisker f16e059640 Update flow-parser (#18474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-12-13 04:18:37 +08:00
fisker Cheung 29a11ae1ae Fix comment in empty type literal (#18364) 2025-11-29 00:00:52 +08:00
fisker Cheung 6ba133e80c Improve super class (or single heritage) breaking (#18325) 2025-11-26 19:43:08 +08:00
fisker Cheungandautofix-ci[bot] 3b8e7960c1 Remove extra space before union type comment (#18253)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-17 13:22:09 +08:00
fisker Cheung b9dc504026 Fix comments in interface and class (#18244) 2025-11-16 21:27:45 +08:00
fisker Cheung 5bc3cd61c8 Make single heritage interface print more like the class superClass (#18215) 2025-11-05 00:17:39 +08:00
fisker Cheung 1a3d443797 Fix Union type alignment (#18165) 2025-10-31 08:31:54 +08:00
fisker Cheung 7de88d638b Replace printInterface with printClass (#18091) 2025-10-21 21:10:51 +08:00
fisker Cheung a94d3cf453 Remove extra indention in class type parameters (#18094) 2025-10-21 17:48:36 +08:00
fisker Cheung 9871b4931c Fix vistor keys for FunctionExpression (#18084) 2025-10-16 07:18:38 +08:00
renovate[bot]andfisker 9765f191ce chore(deps): update typescript-eslint to v8.43.0 (#17868)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-09 22:19:37 +08:00
renovate[bot]andfisker a6bbdad8ca chore(deps): update dependency jest to v30.1.1 (#17819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-08-30 15:36:22 +08:00
Sam Zhou e30c8e6184 Support new Flow feature: opaque type with lower and upper bounds (#17792) 2025-08-13 09:53:29 +08:00
fisker Cheung acd25a9aa6 Support flow "match" syntax (#17681) 2025-08-04 15:27:10 +08:00
fisker Cheung 23f95644f5 Stop auto test babel-flow in tests (#17686) 2025-07-28 16:19:26 +08:00
fisker Cheung 25e214543e Add test for #11526 (#17551) 2025-06-23 07:50:29 +08:00
fisker Cheung 4df0a871ca Add hermes parser (#17520) 2025-05-29 15:30:45 +08:00
fisker Cheung 9e814108ca Add oxc-ts parser (#17483) 2025-05-27 13:32:23 +08:00
fisker Cheung 43d4f962f0 Fix missing parentheses in ConditionalTypeAnnotation (#17196) 2025-03-03 09:09:29 +08:00
renovate[bot]andfisker 5e610717c0 chore(deps): update babel to v7.26.5 (#16989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-01-20 14:02:23 +08:00
Paul DraperandSosuke Suzuki bef1d61a7a Implement objectWrap config option (#16163)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2025-01-15 16:44:45 +09:00
George Zahariev 0015a83d93 Suppport const type params in Flow (#16947) 2024-12-20 11:59:25 +09:00
George Zaharievandfisker Cheung fb9f2c1778 Flow: add support for 'implies' type guard variant (#16272)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-05-11 09:03:55 +08:00
George Zahariev 5a51577428 Flow: add support for inexact tuple types (#16271) 2024-05-11 09:03:13 +08:00
George Zahariev 105bb7beff Flow: add support for bigint enums (#16268) 2024-05-09 11:26:13 +08:00
Klaus Hott Vidalandfisker 16449ce914 renaming jsfmt.spec.js to format.test.js (#16244)
Co-authored-by: fisker <lionkay@gmail.com>
2024-05-06 10:25:10 +08:00
Sam Zhou ae8dcc48f5 Component syntax and related language features printing support (#16191)
* Component syntax and related language features printing support

Relevant Flow docs:
- https://flow.org/en/docs/react/component-syntax/
- https://flow.org/en/docs/react/render-types/

* Update issue number

* declare new test as unstable

* fix tests
2024-04-04 23:10:00 +09:00
renovate[bot]andfisker c66b06d29d chore(deps): update dependency flow-parser to v0.229.0 (#16092)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-18 23:20:44 +08:00
Sam Zhou f4b3b7b1e2 feat: declare namespace printing support for Flow (#16066) 2024-02-11 22:28:50 +09:00
fisker Cheung 6eda34db44 Test: Rename run_spec to runFormatTest (#15943) 2024-01-19 17:20:24 +08:00