Skip to content

Instantly share code, notes, and snippets.

@c089
Created December 17, 2012 08:23
Show Gist options
  • Save c089/4316621 to your computer and use it in GitHub Desktop.
Save c089/4316621 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.initConfig({
jshint: {
options: {
onevar: true
},
files: [ 'wtf.js' ]
}
});
grunt.registerTask('default', 'jshint');
};
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.
{
"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"
}
}
var a = 1;
var b = 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment