Fail build on a linting error
Fail build on a linting error

We seem to have regressed to this error not being caught, this adds an
`exit 1` for a linting error.

alphagov/publishing-api,alphagov/publishing-api