jshint error
Opened this issue · 3 comments
craigkeeling commented
The config file is present (.jshintrc), but I get this error when starting for some reason:
...
[11:45:51] Starting 'css'...
[11:45:51] Starting 'js'...
ERROR: Can't parse config file: .jshintrc
The grunt version, FireShell, had a similar error, but I'm not sure what I can do to fix it.
coreyallen commented
I get this as well.
vjandrei commented
Yep same here, clean clone from git.
First npm install and gulp.
tylerbodway commented
If you don't need a JSHint config file, you can always just remove it from your js
task in your gulpfile.js
gulp.task('js',function(){
gulp.src('src/js/scripts.js')
.pipe(jshint('.jshintrc') // REMOVE THIS
.pipe(jshint.reporter('default'))
.pipe(header(banner, { package : package }))
.pipe(gulp.dest('app/assets/js'))
.pipe(uglify())
.pipe(header(banner, { package : package }))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('app/assets/js'))
});
You won't receive an error since your gulp task isn't looking for it anymore