How to use the result function from gulp-eslint
Find comprehensive JavaScript gulp-eslint.result code examples handpicked from public code repositorys.
143 144 145 146 147 148 149 150 151 152
Type: `String` Shorthand for defining `options.configFile`. ### eslint.result(action) Type: `function (result) {}` Call a function for each ESLint file result. No returned value is expected. If an error is thrown, it will be wrapped in a Gulp PluginError and emitted from the stream.
122
562
10
+ 3 other calls in file
GitHub: maliMirkec/code-line-daily
50 51 52 53 54 55 56 57 58 59
return src(helpers.trim(`${helpers.source()}/${global.config.js.src}/*.js`)) .pipe(gulpif(global.config.js.sourcemaps, sourcemaps.init())) .pipe(gulpif(global.config.js.lint, eslint(thisEslintConfig))) .pipe(gulpif(global.config.js.lint, eslint.format())) .pipe(gulpif(global.config.js.lint, eslint.failAfterError())) .pipe(gulpif(global.config.js.lint, eslint.result((result) => { console.log(`[JS] ESLint complete: ${result.filePath}`); console.log(`[JS] Messages: ${result.messages.length}`); console.warn(`[JS] Warnings: ${result.warningCount}`); console.error(`[JS] Errors: ${result.errorCount}`);
3
17
3
gulp-eslint.format is the most popular function in gulp-eslint (49 examples)