This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Exit code always 1 with type check errors and --force
active
#2087
Labels
Milestone
Bug Report
4.3.1
2.1.5
TypeScript code being linted
with
tslint.json
configuration: irrelevantActual behavior
Type checking is activated via the
--type-check
option as well as the--force
switch.noUnusedParameters
is active in thetsconfig.json
, which is given to TSLint with the--project
argument. The Typescript compiler will of course flag the parameter of the above function as unused.The file runner.js prints the error message (
'x' is declared but never used.
) using an Error. It is not caught anywhere, so the exit code is 1 despite--force
being used and the (valid) error message is followed by a stack trace.Is this the intended behaviour?
Expected behavior
I would expect TSLint to print the error messages emitted by the Typescript compiler as linting errors, without an ugly stack trace containing TSLint source files. If not that, then at least when using the
--force
flag, the exit code should be 0, as stated in the documentation.The text was updated successfully, but these errors were encountered: