How to use the results function from gulp-eslint

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

166
167
168
169
170
171
172
173
174
175
Type: `function (result, callback) { callback(error); }`

Call an asynchronous function for each ESLint file result. 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.results(action)

Type: `function (results) {}`

Call a function once for all ESLint file results before a stream finishes. No returned value is expected. If an error is thrown, it will be wrapped in a Gulp PluginError and emitted from the stream.
fork icon122
star icon562
watch icon10

+ 3 other calls in file