Prettier or Eslint is formatting my constructor by adding parentheses, how do I stop this?
It was my code before saving
function Person(name, first, second) {
this.name = name,
this.first = first,
this.second = second,
this.sum = function () {
return this.frst + this.second
}
}
This is the after saving.
function Person(name, first, second) {
(this.name = name),
(this.first = first),
(this.second = second),
(this.sum = function () {
return this.frst + this.second;
});
}