Add jshint to grunt exec

This commit is contained in:
kpdecker
2013-08-17 12:16:48 -05:00
parent 3d77d172ec
commit 6492fe8c23
7 changed files with 20 additions and 1 deletions
-1
View File
@@ -29,7 +29,6 @@
],
"node" : true,
"es5" : true,
"browser" : true,
"boss" : true,
+11
View File
@@ -2,6 +2,16 @@ module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
jshintrc: '.jshintrc',
force: true
},
files: [
'lib/**/!(parser|browser-prefix|browser-suffix).js'
]
},
concat: {
options: {
banner: '/*!\n\n <%= pkg.name %> v<%= pkg.version %>\n\n<%= grunt.file.read("LICENSE") %>\n@license\n*/\n',
@@ -55,6 +65,7 @@ module.exports = function(grunt) {
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('dist-dir', function() {
+2
View File
@@ -844,6 +844,8 @@ Handlebars.Utils = {
},
escapeExpression: function(string) {
/*jshint eqnull: true */
// don't escape SafeStrings, since they're already safe
if (string instanceof Handlebars.SafeString) {
return string.toString();
+2
View File
@@ -233,6 +233,8 @@ Handlebars.Utils = {
},
escapeExpression: function(string) {
/*jshint eqnull: true */
// don't escape SafeStrings, since they're already safe
if (string instanceof Handlebars.SafeString) {
return string.toString();
+2
View File
@@ -1,3 +1,5 @@
/*global Handlebars: true */
var handlebars = require("./handlebars/base"),
// Each of these augment the Handlebars object. No need to setup here.
+2
View File
@@ -50,6 +50,8 @@ Handlebars.Utils = {
},
escapeExpression: function(string) {
/*jshint eqnull: true */
// don't escape SafeStrings, since they're already safe
if (string instanceof Handlebars.SafeString) {
return string.toString();
+1
View File
@@ -25,6 +25,7 @@
"dust": "~0.3",
"grunt": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-uglify": "~0.2.2",
"jison": "~0.3",
"mocha": "*",