VSCode: plugin tslint-language-service displays lint hints as error, not warning

I am using Visual Studio Code 1.12.1

with Typescript 2.3.2

and the included plugin tslint-language-service: 0.9.3

withtslint: 5.2.0

For some reason, all tooltips tslint

show up as errors with a red underline. I would like to have this as a green / yellow underlined warning.

How can i do this? This is the plugin I am using with the newer Typescript version https://github.com/angelozerr/tslint-language-service#vscode

As with the demo gif, it should be green, not red.

https://github.com/angelozerr/tslint-language-service/raw/master/images/TslintLanguageServiceDemoVSCode.gif

+3


source to share


1 answer


To handle errors, such as warnings, you have to change your tslint.json and include the following setting: "defaultSeverity": "warning"

. More details here .



But it looks like there is a bug in vscode-tslint. See next thread

+8


source







All Articles