How to disable VS Code prettier from deleting extra parenthesis

Viewed 622

I'm using prettier in VS Code for typescript. It always remove extra parenthesis, for example

(new Controller()).setData(data).run();

will always be format into

new Controller().setData(data).run();

Which rules handle this deletion? I did see a similar rule in eslint: no-extra-parens. However, I am not using this rule in my eslint file.

0 Answers
Related