I’ve reinstalled my Windows again and installed Visual Studio Code along with Prettier, but it’s formatting the syntax and everything else very poorly. Below is an example of how it looks and how it should be
This is the bad one
if (this.inter.total_quantity_inv != this.inter.invoice.quantity) {
if (
this.notice.notice_quantity >
this.inter.invoice.quantity -
this.inter.total_quantity_inv +
initial_notice_quantity
) {
this.notice.notice_quantity =
this.inter.invoice.quantity -
this.inter.total_quantity_inv +
initial_notice_quantity;
this.showThrottledError.call(
this,
"Cantitatea anexei nu poate depăși cantitatea facturii!"
);
}
}
This is the good one
if (this.inter.total_quantity_inv != this.inter.invoice.quantity) {
if (this.notice.notice_quantity > this.inter.invoice.quantity - this.inter.total_quantity_inv + initial_notice_quantity) {
this.notice.notice_quantity = this.inter.invoice.quantity - this.inter.total_quantity_inv + initial_notice_quantity;
this.showThrottledError.call(this, "Cantitatea anexei nu poate depăși cantitatea facturii!");
}
}
I’ve configured the prettier setting, but nothing, i’ve uninstalled and installed again, i’ve tried another formatter, but nothing work