Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/408.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 试着让Gulp coffeelint与coffeelint时尚搭配使用_Javascript_Gulp_Coffeelint - Fatal编程技术网

Javascript 试着让Gulp coffeelint与coffeelint时尚搭配使用

Javascript 试着让Gulp coffeelint与coffeelint时尚搭配使用,javascript,gulp,coffeelint,Javascript,Gulp,Coffeelint,我试图将时尚的错误日志应用于coffeelint,但它似乎没有正确显示。当我尝试应用插件时,出现以下错误 Error in plugin 'gulp-coffeelint' Message: coffeelint-stylish is not a valid reporter 我在gulpfile的顶部有两个插件,如下所示。。 我显然已经安装好了 var gulp = require('gulp'); var gutil = require('gulp-util'); var cof

我试图将时尚的错误日志应用于coffeelint,但它似乎没有正确显示。当我尝试应用插件时,出现以下错误

Error in plugin 'gulp-coffeelint'
Message:
    coffeelint-stylish is not a valid reporter
我在gulpfile的顶部有两个插件,如下所示。。 我显然已经安装好了

var gulp = require('gulp');
var gutil = require('gulp-util');

var coffeelint = require('gulp-coffeelint');
var reporter = require('coffeelint-stylish').reporter;
这是我的Gulpfile.js文件中的任务

gulp.task('coffeelint', function () {
    gulp.src(coffeeSources)
        .pipe(coffeelint())
        .pipe(coffeelint-stylish.reporter())
});
我想出来了

gulp.task('coflint', function () { gulp.src('components/coffee/*.coffee') .pipe(coffeelint()) .pipe(coffeelint.reporter('default')) }); 
“默认”使用coffeelint