This repo is a minimalistic reproduction of a bug in the TSLint extension for VSCode. It demonstrates that some linter errors don't appear in VSCode, but do appear when TSLint is run from the command-line.
This project only has two TSLint rules enabled:
rules:
no-empty: true
no-void-expression: true
This project has a single TypeScript code file that contains a violation of each of these rules:
export function add(a: number, b: number): number {
console.log(empty()); // <--- violates the "no-void-expression" rule
return a + b;
}
export function empty(): void { } // <--- violates the "no-empty" rule
When running TSLint from the command-line, it shows both errors, as expected:
The TSLint Extension for VSCode correctly shows the "no-empty" error on line 6, but notice that it does not show the "no-void-expression" error on line 2: