I recently started seeing, what seems like, TSLint errors. They look like this:
Not using the local TSLint version found for '/Users/myname/myproject/client/src/app/likes/likee/likee.component.ts'. To enable code execution from the current workspace you must enable workspace library execution.
I'm seeing them in my .ts files when I open them and it shows a yellow squiggly line on the first line of each .ts page.
I see on the TSLint site it says it's been deprecated.
What's the cause of these errors and why am I suddenly seeing them?
Should I uninstall the Visual Studio Code TSLint extension and install the ESLint extension?
Command Palette# VS Code is equally accessible from the keyboard. The most important key combination to know is Ctrl+Shift+P, which brings up the Command Palette.
Like Tuấn Nguyễn described, you need to:
Go to the Command Palette by pressing Ctrl + Shift + P,
In the input that pops up at the top of the Visual Studio Code, start typing
TSLint: Manage workspace library execution"
and hit the Enter key.
From the menu that replaces the input, pick enable workspace library execution and again press the Enter key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With