Is there a way to stop prettier / prettier-now from breaking function arguments into new lines
Closed this issue · 1 comments
k-xo commented
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 });
})
);
Nartynka commented
I have the same problem :/