Comments (3)
After digging into it for a bit, I was finally able to get a config that worked for me. I think that this is more of a documentation issue for the sites pushing new users to install this tool-chain without really going over the details needed to be able to deploy a site.
Here's what I ended up with for a .jshintrc file:
{ "node": true, "browser": true, "bitwise": true, "camelcase": false, "curly": false, "eqeqeq": true, "immed": true, "latedef": true, "newcap": true, "noarg": true, "quotmark": "single", "regexp": true, "undef": true, "unused": false, "strict": false, "trailing": false, "smarttabs": true, "globals":{"angular": false,"confirm":false,"CryptoJS":false} }
I've probably turned off more than was necessary, but without much direction, I just needed something that would work.
from grunt-contrib-jshint.
The output shows that your config appears to be looking for a .jshintrc
file in the root of your project, where your Gruntfile is, but it can not find it, hence the ENOENT
error.
The fix would be to either place a global .jshintrc in your project's root, reference one of the dozen as your global in your default task configuration, or split up your jshint task configuration so that different directories are configured with the appropriate jshintrcs, eg
jshint : {
dir1 : {
src : 'app/dir1/**/*.js',
options : {
jshintrc : 'app/dir1/.jshintrc'
}
},
dir2 : {
src : 'app/dir2/**/*.js',
options : {
jshintrc : 'app/dir2/.jshintrc'
}
}
}
from grunt-contrib-jshint.
Hmm, ok, I'll give this a shot. I am really unclear as to what's supposed to have a .jshintrc file and what's not, and if there's one missing, what it is supposed to look like.
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.