Created
December 17, 2012 08:23
-
-
Save c089/4316621 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.initConfig({ | |
jshint: { | |
options: { | |
onevar: true | |
}, | |
files: [ 'wtf.js' ] | |
} | |
}); | |
grunt.registerTask('default', 'jshint'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt-cli v0.1.4 | |
Initializing | |
Command-line options: --verbose | |
Reading "Gruntfile.js" Gruntfile...OK | |
Registering Gruntfile tasks. | |
Registering "grunt-contrib-jshint" local Npm module tasks. | |
Reading /private/tmp/grunt-jshint-wtf/node_modules/grunt-contrib-jshint/package.json...OK | |
Parsing /private/tmp/grunt-jshint-wtf/node_modules/grunt-contrib-jshint/package.json...OK | |
Loading "jshint.js" tasks...OK | |
+ jshint | |
Initializing config...OK | |
Loading "Gruntfile.js" tasks...OK | |
+ default | |
No tasks specified, running default tasks. | |
Running tasks: default | |
Running "default" task | |
Running "jshint" task | |
Running "jshint:files" (jshint) task | |
Verifying property jshint.files exists in config...OK | |
JSHint options: onevar | |
JSHint globals: (none) | |
Reading wtf.js...OK | |
Linting wtf.js...OK | |
>> 1 file lint free. | |
Done, without errors. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "grunt-jshint-bugreport", | |
"version": "0.0.0", | |
"engines": { | |
"node": "0.8.x" | |
}, | |
"dependencies": { | |
"grunt": "0.4.x", | |
"grunt-cli": "0.1.x", | |
"grunt-contrib-jshint": "0.1.x" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 1; | |
var b = 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment