How to use the failOnError function from gulp-eslint

Find comprehensive JavaScript gulp-eslint.failOnError code examples handpicked from public code repositorys.

189
190
191
192
193
194
195
196
197
198

Type: `function (results, callback) { callback(error); }`

Call an asynchronous function once for all ESLint file results before a stream finishes. The callback must be called for the stream to finish. If a value is passed to the callback, it will be wrapped in a Gulp PluginError and emitted from the stream.

### eslint.failOnError()

Stop a task/stream if an ESLint error has been reported for any file.

```javascript
fork icon122
star icon562
watch icon10

+ 3 other calls in file