I added a TSLint spawn functionality + unit tests for that.
Because the TSLint rules for TypeScript are 100% compatible with JavaScript (those are the words from the maintainer of the TSLint security rules project) I tested only on vulnerable JavaScript file.
Sadly, TSLint doesn't report you when you try to scan an invalid file with syntax errors. That's why I haven't added more sophisticated functionality in parseResults function in linters/tslint.js
I added a TSLint spawn functionality + unit tests for that.
Because the TSLint rules for TypeScript are 100% compatible with JavaScript (those are the words from the maintainer of the TSLint security rules project) I tested only on vulnerable JavaScript file.
Sadly, TSLint doesn't report you when you try to scan an invalid file with syntax errors. That's why I haven't added more sophisticated functionality in parseResults function in linters/tslint.js
Signed-off-by: Martin Vrachev mvrachev@vmware.com