Skip to content

Conversation

@spalger
Copy link
Contributor

@spalger spalger commented Jul 12, 2018

Backports the following commits to 6.x:

`node scripts/tslint` is used to run the linter on all projects, but isn't currently reporting a non-zero status code when there are failures. This PR ensures that the status code is always 1 when an error occurs in the linters.

To test make a change to a TypeScript file that violates the linter rules and run `yarn grunt run:tslint` to make sure that `grunt` is seeing the non-zero exit code and fatal-ing correctly.

```sh
yarn grunt run:tslint
echo $? # should be 1
```
@spalger spalger added the backport This PR is a backport of another PR label Jul 12, 2018
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@spalger spalger merged commit d6a4331 into elastic:6.x Jul 13, 2018
@spalger spalger deleted the backport/6.x/pr-20567 branch July 13, 2018 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants