When I save my component file, prettier automatically formats the return statement to this:
return edit ? (
<DetailsEdit study={study} setEdit={setEdit} />
) : (
<DetailsView study={study} setEdit={setEdit} />
);
Is there any way I can make it such that it formats it to this instead?
return edit
? <DetailsEdit study={study} setEdit={setEdit} />
: <DetailsView study={study} setEdit={setEdit} />;
These are the contents of my .prettierrc file
{
"tabWidth": 2,
"printWidth": 100
}