3

I developed a TsLint rule for my team so that we don't forget to remove the fdescribe() calls in unit tests before committing.

On WebStorm, everything is fine. But on Visual Studio Code (with official tslint extension), a big error is displayed until the fdescribe() is removed, which is annoying.

Is there a way to tell Visual Studio Code to ignore this TsLint error ?

enter image description here

Arnaud Denoyelle
  • 29,980
  • 16
  • 92
  • 148
  • Well you ask the linter to spot that error, you kind of ask to highlight it ... Not sure you can remove it unless you remove the rule (let it be in the tsconfig file or with a comment) –  Mar 13 '19 at 09:17
  • @trichetriche I actually want `ng lint` to spot it and fail the PR but I don't want the IDE to show it. – Arnaud Denoyelle Mar 13 '19 at 09:21
  • Could this help? https://stackoverflow.com/questions/42632215/how-to-disable-typescript-warnings-in-vscode – Dzhuneyt Mar 13 '19 at 09:24
  • Then you should remove the TSLint extension and use something like [husky](https://github.com/typicode/husky) to use git prepush hooks. –  Mar 13 '19 at 09:24

0 Answers0