Skip to content

thobas-dnvgl/oxfmt-issue-14989

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors