r/javascript • • Oct 16 '26

Running your code through prettier can change what it does.

https://trustsig.eu/blog/javascript-divergence/
3 Upvotes

6 comments sorted by

View all comments

-24

u/dustofdeath Oct 17 '26

Prettier is obsolete, any decent IDE, with llm can handle formatting just fine.

4

u/trustsigRobert Oct 17 '26

I can go test whatever IDE you have in mind and reply with the results, most IDE's use prettier or similar tool for formatting JavaScript.

When formatting with VSCode built in formatter: "This script was processed by an unknown tool."
With Zed: "You formatted this with Prettier"

Both of which are vulnerable to the divergence caused by the techniques.