Tell Prettier To Not Format A Statement
Prettier is a boon to productivity because individuals and teams don't have to make any decisions about the fine details of how their code is formatted. Generally, let prettier
do its thing.
There are some situations where you want to preserve your own formatting, especially if it improves readability.
Here is some prettier
formatted code:
Originally, I included some whitespace to keep things visually aligned. If I include a prettier-ignore
comment, the statement immediately following it will not be touched by prettier.
Last updated