codepunkt/gulp-jscs-stylish

Invalid reporter error after running gulp task

Closed this issue ยท 4 comments

Hi,

I have a task with the following code, however I keep getting an error when I try to run it.
I attached a code example.

return gulp.src(config.files.js.src)
    .pipe(jshint('.jshintrc'))
    .pipe(jscs())
    .on('error', function() {})
    .pipe(stylish.combineWithHintResults())
    .pipe(jshint.reporter('jshint-stylish'))
    .pipe(concat('scripts.js'));

Error I am getting:

[16:58:24] Error in plugin 'gulp-jshint'
Message:
    Invalid reporter

K.

Did you install jshint-stylish as a dependency?

Thanks, it is working now.
Is this documented somewhere?

I also had to install jscs-jsdoc manually.

K.

๐Ÿ‘

Thanks :) It's working now..
Installed module jshint-style ๐Ÿ‘