When using prettier / prettier-now to format on save, when a function wraps around another function it breaks to a new line, I was wondering if there was a to stop this behavior?
For example:
Desired output:
app.get('/campgrounds/:id', catchAsync(async (req, res) => {
const campground = await Campground.findById(req.params.id);
res.render('campgrounds/show', { campground });
}));
Prettier / Prettier-now output:
app.get(
'/campgrounds/:id',
catchAsync(async (req, res) => {
const campground = await Campground.findById(req.params.id);
res.render('campgrounds/show', { campground });
})
);