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

Disable prettier #2494

Open
fires3as0n opened this issue Apr 25, 2023 · 5 comments
Open

Disable prettier #2494

fires3as0n opened this issue Apr 25, 2023 · 5 comments

Comments

@fires3as0n
Copy link

Is your feature request related to a problem? Please describe.

By default the prettier messes my code whenever I save it. Prettier is opinionated, opinionated things should no be enabled by default

Describe the solution you'd like

At least an option to disable prettier completely for the project.

@pickle69420
Copy link

Yes this would be a great feature because prettier is pretty bad (in my opinion and from my experience)

@nathangeneral23
Copy link

Could you provide an example of Prettier changing your code in a way that isn't correct?

Additionally, it is also possible to disable Prettier formatting files on save by configuring workspace settings with the following:
"editor.formatOnSave": false

@pickle69420
Copy link

Could you provide an example of Prettier changing your code in a way that isn't correct?

Additionally, it is also possible to disable Prettier formatting files on save by configuring workspace settings with the following: "editor.formatOnSave": false

Nope, this does nothing even on reload of workspace.

@nathangeneral23
Copy link

Workspace settings should look something like this:

{
  "editor.formatOnSave": false
}

Make sure that it is formatted as a correct JSON object.

@NoralK
Copy link

NoralK commented Mar 17, 2024

I too cannot disable the wrapping. If I put into Workspace Settings this setting it should disable the wrapping:

"prettier.singleAttributePerLine": false,

but it does not. Is this by design, if so, why? For me, it makes using Stackblitz unusable.
@kc0tlh @fvsch Could you please look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants