Code Monkey home page Code Monkey logo

Comments (5)

shama avatar shama commented on July 20, 2024

This is because jshint at the moment doesn't expose the way they load .jshintrc files. So we have our own implementation and you need to specify the path and name with the jshintrc option: https://github.com/gruntjs/grunt-contrib-jshint#jshintrc

We're definitely interested in removing our implementation in favor of jshint when/if it is exposed.

from grunt-contrib-jshint.

cyjake avatar cyjake commented on July 20, 2024

I do have .jshintrc file specfied. Here's my jshint part of Gruntfile.js

jshint: {
  all: [
    'Gruntfile.js',
    'src/**/*.js',
    'test/**/*.js',
    '!test/mocha.js',
    '!test/expect.js'
  ],
  options: {
    jshintrc: '.jshintrc',
    jshintignore: '.jshintignore'
  }
},

And this config works perfectly in Mac OS X

from grunt-contrib-jshint.

shama avatar shama commented on July 20, 2024

Oh strange. I don't have a Win Xp machine to test but I'll double check it on Windows 7.

from grunt-contrib-jshint.

cyjake avatar cyjake commented on July 20, 2024

@shama Oops, wrong impression. The problem is the same in Mac OS X. The project I am linting is https://github.com/thx/brix-core , which has JavaScript code for Node.js, browsers and mocha testcases.

I guess I'll have to stick with verbose options in Gruntfile.js for now.

from grunt-contrib-jshint.

cyjake avatar cyjake commented on July 20, 2024

I've splited the task into tasks with different settings. https://github.com/thx/brix-core/blob/master/Gruntfile.js#L7
In this way, both jshint and grunt jshint work. And the .jshintrc files are the same.

from grunt-contrib-jshint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.