Hacker News new | past | comments | ask | show | jobs | submit login

Disable it! (https://prettier.io/docs/en/ignore.html)

I do this occasionally, and especially with things like test tables. Linters/formatters are there to help in the common case, not to be some oppressive dogma.




If the fix is to disable prettier for an entire file, you're proving your parent poster point.


It doesn't have to be disabled for the whole file, you can annotate lines too as shown in the link the parent commenter shared.


Adding comments just to fight with prettier is... uglier. I rather just not use prettier at all. It's more harmful than good IMO.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: