I am hoping to run Prettier on an existing codebase that is also using eslint.
There are many places where single-line if
s exist and I want to leave them intact, but Prettier keeps changing them to multi-line without braces, which of course causes an error.
It's going from:
if (...) throw new Error(...)
To:
if (...)
throw new Error(...)
What is the magic combination of rules to let Prettier ignore these?