Commit Graph
197 Commits
Author SHA1 Message Date
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 7d3ff5d2fc Fix comment around as/satisfies expression (#18162) 2025-10-31 02:43:23 +08:00
fisker Cheung 062ab10601 Fix inconsistent print of as const (#18161) 2025-10-31 02:04:38 +08:00
fisker Cheung 12607085aa Fix call signatures print in --no-semi mode (#18118) 2025-10-24 20:29:43 +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 d4bd42f7f4 Fix inconsistent comment in property signature (#18110) 2025-10-21 17:40:46 +08:00
fisker Cheung 7eb39eafc0 Remove extra blank line in type alias (#18109) 2025-10-21 00:39:09 +08:00
fisker Cheung 5abc81f055 Improve formatting for default type on type parameters (#18043) 2025-10-11 16:15:50 +08:00
fisker Cheung 05b1a783d1 Use printCallExpression to print TSExternalModuleReference (#18035) 2025-10-11 01:08:24 +08:00
fisker Cheung e48f0eaf78 Fix TSMappedType format with babel-ts parser (#17785) 2025-09-24 05:49:53 +08:00
fisker Cheung b7b2b0d434 Print trailing comma in TSImportType options (#17798) 2025-09-23 17:51:36 +08:00
fisker Cheung 479a54de66 Add missing parentheses to arrow function in TSInstantiationExpression (#17724) 2025-09-12 01:53:02 +08:00
fisker 7be05ab5a4 Clean changelog_unreleased 2025-06-25 14:47:06 +08:00
fisker Cheung 0926587a5f Allow const without initializer in oxc-ts parser (#17654) 2025-06-24 00:26:42 +08:00
fisker Cheung 93bc1dfd0f Allow const without initializer in babel-ts parser (#17650) 2025-06-23 18:31:03 +08:00
fisker f67b32ba66 Clean changelog_unreleased 2025-06-23 10:10:54 +08:00
SUZUKI Sosuke 0f553baffc Don't print extra semicolon after prettier-ignored index-signature (#17538)
* Don't print extra semicolon after `prettier-ignore`d index-signature

* Update snapshots

* Add changelog
2025-05-30 18:22:16 +09:00
fisker Cheung a358006a92 Rewrite TSMappedType print (#17498) 2025-05-27 09:11:00 +08:00
fisker Cheung edbc835c9f Fix multiple comments in LogicalExpression and IntersectionType (#17193) 2025-03-05 02:48:25 +08:00
fisker Cheung ff3b785214 Support import type attribute in TSImportType (#16881) 2025-02-26 15:29:05 +08:00
fisker 6c7460a5d7 Clean changelog_unreleased 2024-12-04 15:06:20 +08:00
fisker Cheung 572bebe2d4 Fix comments on class methods with decorators (#16891) 2024-12-02 10:03:56 +08:00
Sosuke Suzuki f53791a2c8 Clean changelog_unreleased 2024-11-26 13:53:25 +09:00
fisker Cheung 02200375bc Print declare before accessibility in class properties (#16731) 2024-10-18 21:13:39 +08:00
fisker Cheung d973283c16 Fix space between class heritage and class body (#16730) 2024-10-18 21:12:30 +08:00
fisker Cheung b19139acb7 Support TLA for typescript parser (#16729) 2024-10-18 21:11:55 +08:00
SUZUKI Sosuke f675f9f3c0 Don't print an extra line break for arrow function with type parameter in assignment (#16586)
* Dont print extra softline

* Update snapshot

* Add changelog
2024-08-19 11:05:32 +09:00
SUZUKI Sosuke f7cceb9be1 Preserve a comment between modifier and the decorated property name (#16578) 2024-08-16 13:12:24 +09:00
SUZUKI Sosuke bd3ad84c29 Preserve a comment on between decorator and modified parameter property (#16574) 2024-08-15 16:03:53 +09:00
Sung Ye Inandfisker Cheung 4a39c117d1 Handle exception in needs parens with optional chaining (#16500)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-07-27 15:11:27 +08:00
Sosuke Suzuki a0cde0ad88 Clean changelog_unreleased 2024-07-13 21:27:55 +09:00
y-schneiderandfisker 9102b73d8c Add parentheses for decorator expressions (#16458)
Co-authored-by: fisker <lionkay@gmail.com>
2024-07-13 21:15:40 +09:00
Sosuke Suzuki 2406fee590 Clean changelog_unreleased 2024-06-02 02:04:43 +09:00
Kirk Waiblingerandfisker Cheung 48c9bc4aea Yield expression parens (#16194)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-04-04 16:39:31 +09:00
三咲智子 Kevin DengandSosuke Suzuki 765aa10dfe fix: no semi for readonly class field (#16133)
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2024-03-09 20:46:47 +09:00
fisker Cheung b7a2241cba Add missing parentheses to TSInferType (#16031) 2024-02-07 02:49:14 +08:00
renovate[bot]andfisker e7cfd62d78 chore(deps): update typescript-eslint to v6.21.0 (#16040)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-06 19:17:29 +08:00
fisker dda00cdd1d Clean changelog_unreleased 2024-01-17 11:32:07 +08:00
renovate[bot]andfisker b4ed91bffb chore(deps): update typescript-eslint to v6.18.1 (#15881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-01-15 14:42:44 +08:00
Sosuke Suzuki c52f441846 Clean changelog_unreleased 2024-01-13 01:22:01 +09:00
SUZUKI Sosuke 5c6450db9c Clean changelog for 3.1.1 (#15889)
Clean changelogs
2024-01-07 23:52:00 +09:00
Seiyaandfisker Cheung 82db5fcd0d Somewhat improve conditional type alias (#15811)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-12-28 23:46:34 +09:00
fisker Cheung 4c3cfa7a81 Support TypeScript 5.3 (#15718) 2023-12-05 15:39:24 +08:00
SUZUKI Sosuke 0ba2d693ba Fix unstable and ugly formatting for comments in destructuring patterns (#15708) 2023-11-24 00:56:14 +09:00
Sosuke Suzuki a3e1be82b6 Clean changelog 2023-11-13 12:04:23 +09:00
Seiya c609058fd3 Support (type) satisfies never; (#15514) 2023-10-16 16:04:28 +09:00
SUZUKI Sosuke 4169dbb871 Fix printing comment for the last operand of union types (#15409) 2023-09-16 21:52:02 +09:00
SUZUKI Sosuke c041f3fb4f Support embedded formatting in template literals annotated with as const (#15408) 2023-09-16 21:42:17 +09:00