Created
January 27, 2014 18:22
-
-
Save jlouthan/8654429 to your computer and use it in GitHub Desktop.
Basic Gruntfile.js after adding a configuration for the jshint task.
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
// wrapper function | |
module.exports = function(grunt){ | |
// load all our Grunt plugins | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// task configuration goes here | |
jshint: { | |
options: { | |
"node": true, | |
"esnext": true, | |
"curly": false, | |
"smarttabs": true, | |
"indent": 2, | |
"quotmark": "single" | |
}, | |
all: ['Gruntfile.js', 'scripts/{,*/}*.js'] | |
} | |
}); | |
// define the default task that executes when we run 'grunt' from inside the project | |
grunt.registerTask('default', []); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment