Browserify transform to abort bundling silly source files.
$ npm install lintify
Lintify, What is it Good For?
- someone creates CI job
- someone configures Checkstyle plugin for CI job
- someone configures ESLint to create Checkstyle format report
- developer saves silly source file
- developer commits silly source file to VCS
- developer pushes VCS commit to remote
- remote pushes notification to CI server
- CI server pulls in VCS changes
- CI server builds browserify bundle
- CI server passes bundle to ESLint
- ESLint generates Checkstyle report
- CI server aborts build
- CI server sends email to developer
- developer fixes issues
- developer commits potentially still silly source file to VCS
- back to step 6
- developer saves silly source file
- building browserify bundle is aborted
- developer fixes issues
That's what I used to think! It turns out, however, that the answer to that question is no.
{
errors: {
head: function (file) {
// log source file name
},
each: function (position, reason) {
// log every error position in source file and reason
},
tail: function () {
// log aborted bundle name
},
message: 'OH NOES LINT ERRORS EMITTED!!1!'
}
}
MIT