I\'m trying to migrate an ES6 project to typescript. This is my first attempt at writing a typescript module in NodeJS.
It seems to work better in Angular-CLI so far.
For me the problem was resolved by setting Typescript validation to true in VSCode settings:
"typescript.validate.enable": true,
I had turned this off in my workspace settings in the past and forgot!
So make sure to double check that this setting is not set to false in your user settings, workspace settings or folder settings.
For instance the rule I was trying to get work was checking for undefined variables which was immediately fixed when I set validate to true.