Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jshint error #2

Open
craigkeeling opened this issue Aug 7, 2014 · 3 comments
Open

jshint error #2

craigkeeling opened this issue Aug 7, 2014 · 3 comments

Comments

@craigkeeling
Copy link

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
Copy link

I get this as well.

@vjandrei
Copy link

Yep same here, clean clone from git.
First npm install and gulp.

@tylerbodway
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants