Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 904 Bytes

File metadata and controls

31 lines (25 loc) · 904 Bytes

Minimal reproduction for oxc-project/oxc#14989

All the files in this reposiroty are saved using CRLF line breaks/ending on Windows 11.

Formatting the code using oxfmt version 0.8 (latest release at the time of creation of this repository) will add new break lines between imports and between object properties:

diff --git i/index.js w/index.js
index 332c5d1..f65c419 100644
--- i/index.js
+++ w/index.js
@@ -1,13 +1,16 @@
 import path from "node:path";
+
 import { fileURLToPath } from "node:url";

 const __filename = fileURLToPath(import.meta.url);
+
 const __dirname = path.dirname(__filename);

 const myModule = {
   greet: function () {
     return `Hello, ${__dirname}!`;
   },
+
   farewell: function () {
     return `Goodbye, ${__dirname}!`;
   },

Note that adding a .oxfmtrc.json config file endOfLine: "crlf" does not change this behavior.