You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gulp.task('eslint', function () {
gulp.src(['bin/**/*.js','server/**/*.js'])
.pipe(eslint())
.pipe(eslint.format('eslint-path-formatter'));
});
But it fails with the error:
TypeError: Invalid Formatter
at Object.exports.resolveFormatter (...\node_modules\gulp-eslint\util.js:129:10)
at Function.gulpEslint.format (...\node_modules\gulp-eslint\index.js:113:19)
at Gulp.<anonymous> (...\gulpfile.js:39:22)
The text was updated successfully, but these errors were encountered:
As stated in Bartvds/eslint-path-formatter#2 the correct usage of the `eslint-path-formatter` plugin is `.pipe(eslint.format('node_modules/eslint-path-formatter'));`.
I have installed it with:
npm install eslint-path-formatter --save-dev
I've tried to use it in a gulp task as follow:
But it fails with the error:
The text was updated successfully, but these errors were encountered: