Comments (5)
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.
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.
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.
@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.
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)
- Option to allow multiple reporters and outputs HOT 1
- Latest release (0.11.0) fails when reporterOutput is set to the default value (null) HOT 3
- npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4.0 HOT 1
- minimatch deprecated HOT 6
- Multiple reporterOutputs?
- Update to grunt v1.0
- No Output in Windows
- with_overrides aren't not working HOT 1
- Provide Linux Installation Command HOT 2
- "unused": false doesn't work at all
- Opening a file clears all JSHint messages from Visual Studio Error List window
- Loading "jshint.js" tasks...ERROR. TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string HOT 1
- paychex
- 'URLSearchParams' is not defined. HOT 1
- Updated Release Coming? HOT 3
- Update Jshint dependency HOT 2
- Updating dependency HOT 1
- Promise usage results in errors
- [UPDATE DEPENDENCIES] [JSHINT 2.13.0] New release of Jshint is now avaiable HOT 2
- Still experiencing problems when using ES6 syntax HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-contrib-jshint.