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

Change behavior of max_line_length = off to ignore line breaks #15446

Closed
Richard87 opened this issue Sep 23, 2023 · 4 comments
Closed

Change behavior of max_line_length = off to ignore line breaks #15446

Richard87 opened this issue Sep 23, 2023 · 4 comments
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Comments

@Richard87
Copy link

This is relevant: #14514

When I discovered the "max_line_length = off" option, and that Prettier supported it, I expected Prettier to leave newlines alone, and let me add them inn where I thought appropriate.

Instead I got super long lines.

I want to controll newlines my self, and if I want max_line_length to be 9007199254740991, i can set it myself (or something more reasonable like 500, 5.000 or 50.000 :)

@sosukesuzuki
Copy link
Member

Can you update this issue according to the issue template?

@sosukesuzuki sosukesuzuki added the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Sep 24, 2023
@fisker
Copy link
Member

fisker commented Sep 24, 2023

We don't have an existing option for the expected behavior "leave newlines alone", you can use "off" for your other tools, but you have to pick a printWidth in .prettierrc if you don't want us treat it as Infinity.

@Richard87
Copy link
Author

Yes, thats what i found out.

My request is to make it work like I expexted (i hope Im not the only one that feels thid way).

But, is it something Prettier would be interredting in supporting? Would it be possible, or very hard? 🙂

@github-actions github-actions bot removed the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Sep 24, 2023
@fisker
Copy link
Member

fisker commented Sep 24, 2023

We won't support it, sorry!

@fisker fisker closed this as completed Sep 24, 2023
@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Dec 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

3 participants