I have my formatter installed, which is prettier, and I have enabled the format on save but I come across this problem which is sometimes it adds unnecessary new lines every time I save them, example in an array, like this:
const days = [
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
]
const months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
]
Whereas before I saved, it just (and should be) look like this:
const days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
I was wondering what configuration should I make to prevent this change while still keeping the 'format on save' enabled.
