After reinstalling Windows and installing Visual Studio Code along with Prettier, I am facing an issue where the formatting is not up to par. Below is an example showcasing the difference between how it looks versus how it should look.
Incorrect Formatting
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!"
);
}
}
Correct Formatting
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 have tried configuring Prettier settings, as well as uninstalling and re-installing it, but nothing seems to work.