0

In the example code below, when I have "formatOnSave" enabled (which I prefer), for every instance of "n?.", it automatically converts it to "n ?."

Is it possible to create an exception handler to prevent this replacement but keep "formatOnSave" enabled?

enter image description here

js-newb
  • 421
  • 6
  • 16
  • Sounds like you're using an old version of vs code or an old version of typescript. – Aluan Haddad Apr 29 '22 at 13:44
  • Actually, I just found the answer > https://stackoverflow.com/questions/58820889/expression-expected-ts1109-after-typescript-upgrade-to-3-7-2 – js-newb Apr 29 '22 at 13:48
  • 1
    Just had to change the typescript version setting in the code editor to use the workspace version instead of VS Code version – js-newb Apr 29 '22 at 13:49

0 Answers0