I am not enable typescript in my react project , and I just import optional chain to my project,it works but vscode keep gaving me an syntax error. I have checked all my instlled extentions, no tslint. so I don't know where the error comes from and how can I disabled this syntax checking?
update:
VS Code 1.41 supports optional chaining in both JavaScript and TypeScript files. This support includes syntax highlighting and IntelliSense.
https://stackoverflow.com/a/58530234/11454633
this resolved my problem.just upgrade vscode to the latest version