fix(ts/formatter): format comment after => in arrow functions#9527
fix(ts/formatter): format comment after => in arrow functions#9527dyc3 merged 3 commits intobiomejs:mainfrom
Conversation
🦋 Changeset detectedLatest commit: fa20000 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Merging this PR will not alter performance
Comparing Footnotes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdds handling for TypeScript function types when placing comments that appear after the fat arrow (=>) so such comments become leading comments on the following node (or default if none). Adds tests covering inline and separate-line comments after the arrow in TypeScript function types. Adds a changelog entry for a patch release referencing issue Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can generate walkthrough in a markdown collapsible section to save space.Enable the |
fixes: #8959
Summary
Made formatting consistent for comments right after
=>in TypeScript arrow return types.Test Plan
Added test code.