Move from embedded "fork" of jsHint to using grunt's jsHint module. Cleaned ALL jsHint errors. Added jasmine.util.isUndefined as alternative to extra careful protection against undefined clobbering
24 lines
641 B
JavaScript
24 lines
641 B
JavaScript
module.exports = function(grunt) {
|
|
|
|
// Project configuration.
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
jshint: {
|
|
options: {
|
|
/* While it's possible that we could be considering unwanted prototype methods, mostly
|
|
* we're doing this because the objects are being used as maps.
|
|
*/
|
|
forin: false,
|
|
|
|
/* We're fine with functions defined inside loops (setTimeout functions, etc) */
|
|
loopfunc: true
|
|
},
|
|
all: ['src/**/*.js']
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
// Default task(s).
|
|
grunt.registerTask('default', ['jshint']);
|
|
}; |