feat(oxfmt): Add insertFinalNewline option#17251
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
e00d403 to
fde61bb
Compare
bfd0a24 to
f442c33
Compare
insertFinaleNewline option
insertFinaleNewline optioninsertFinalNewline option
CodSpeed Performance ReportMerging #17251 will not alter performanceComparing Summary
Footnotes
|
f442c33 to
ee42a8b
Compare
|
Don't need to change the formatter for |
|
It's not necessary. Actually, it would be a problem if it were deleted. 😓 oxc/apps/oxfmt/src/core/format.rs Lines 104 to 108 in ee42a8b |
Merge activity
|
fde61bb to
7b810f4
Compare
ee42a8b to
97a02d1
Compare

Fixes #15066 and closes #16757
insertFinalNewline: booloptiontrueby default = The same behavior with currentoxc_formatterand Prettierinsert_final_newlinein.editorconfig.oxfmtrctakes precedence