Fix jshint issues in Gruntfile

This commit is contained in:
slackersoft 2015-01-26 10:15:37 -08:00
parent 30ce8dcc68
commit 821c8e8edf

View File

@ -1,5 +1,9 @@
module.exports = function( grunt ) { module.exports = function( grunt ) {
'use strict'; 'use strict';
function packageVersion() {
return require('./package.json').version;
}
// //
// Grunt configuration: // Grunt configuration:
// //
@ -31,7 +35,8 @@ module.exports = function( grunt ) {
beforeEach: false, beforeEach: false,
afterEach: false, afterEach: false,
spyOn: false, spyOn: false,
getJasmineRequireObj: false getJasmineRequireObj: false,
require: false
} }
}, },
all: ['Gruntfile.js', 'src/**/*.js', 'lib/**/*.js', 'spec/**/*.js'] all: ['Gruntfile.js', 'src/**/*.js', 'lib/**/*.js', 'spec/**/*.js']
@ -62,10 +67,6 @@ module.exports = function( grunt ) {
packageVersion: packageVersion() packageVersion: packageVersion()
}); });
function packageVersion() {
return require('./package.json').version;
}
grunt.registerTask('versionCheck', function() { grunt.registerTask('versionCheck', function() {
var pkgVersion = packageVersion(), var pkgVersion = packageVersion(),
bower = require('./bower.json'), bower = require('./bower.json'),