Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep new line after before all block comment. #47

Open
UchihaYuki opened this issue Jul 12, 2024 · 0 comments
Open

Keep new line after before all block comment. #47

UchihaYuki opened this issue Jul 12, 2024 · 0 comments
Labels

Comments

@UchihaYuki
Copy link

Tell us about your environment

  • Node Version: 20.14.0
  • comment-json Version 4.2.4

Please show your use case / code slices / code link that could reproduce the issue

tsconfig.json:

/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
  "compileOnSave": false,
import commentJson from "comment-json";
import fs from "fs";
fs.writeFileSync(
  "./test2.json",
  commentJson.stringify(
    commentJson.parse(fs.readFileSync("./tsconfig.json", "utf-8"), null, false),
    null,
    2
  )
);

Actual output:

/* To learn more about this file see: https://angular.io/config/tsconfig. */{
  "compileOnSave": false,
...

What did you expect to happen?
Keep new line after before all block comment.

Are you willing to submit a pull request to fix this bug?
I don't have enough time recently.

@UchihaYuki UchihaYuki added the bug label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant