jsfiddle / jsfiddle-users

Discussions, issues and docs for JSFiddle.
https://jsfiddle.net
314 stars 114 forks source link

Prettier removing semi-colons #1896

Open Dropboy opened 1 month ago

Dropboy commented 1 month ago

Hey not sure if this is intended but it looks like semi-colons are being removed in JS tab when using prettier to tidy code - would be good to have an option to disable this as it can lead to wonky results if you're not keeping on top of adding them. Feel free to let me know if there is a way to do this already/why this isn't already a feature happy to learn that I'm wrong!

oskarkrawczyk commented 2 days ago

Yes, Prettier is... pretty opinionated in this matter. So for now it removes semicolons since it's a popular way of coding these days (including mine), but I'll add an option for the user to pick their way of coding.