How to prevent inspection error for optional chaining in JavaScript

Hi everyone,

I'm currently struggling with the configuration of our TeamCity inspections. In our project we use optional chaining in JavaScript.

- e.g. var a = myObject?.name;

The TeamCity build fails, because of a new inspection error. The message is: ; is expected

In the TeamCity Administration, we installed the latest ReSharper Command Line Tools (2021.3.3).

Has anyone, any ideas, how to configure the inspections to prevent this error?

1

Please sign in to leave a comment.