Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Output to file not working in >5.4.0 #2863

Closed
sevaru opened this issue Jun 2, 2017 · 1 comment · Fixed by #2867
Closed

Output to file not working in >5.4.0 #2863

sevaru opened this issue Jun 2, 2017 · 1 comment · Fixed by #2867

Comments

@sevaru
Copy link

sevaru commented Jun 2, 2017

Bug Report

  • TSLint version: 5.4.2
  • TypeScript version: 2.3.4
  • Running TSLint via: CLI

TypeScript code being linted

tslint -p tsconfig.json -c tslint.json -o tslint-output.json

with tslint.json configuration:

{
    "rules": {
    	"no-var-keyword": true
    }
}

Actual behavior

With a versions start from 5.4.0 tslint-output.json file is empty. Works with 5.3.2, 5.3.0.

Expected behavior

tslint-output.json file has information about errors.

Note

I added only one rule in tslint.json just for sample purpose. It doesn't work with any other rule too.

@ajafff
Copy link
Contributor

ajafff commented Jun 2, 2017

Seems like a race condition between asynchronously writing to file and the call to process.exit(code) after linting.
PR incoming.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants