Skip to content

Commit

Permalink
Resolve all jshint errors in Gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob--W committed Jul 21, 2014
1 parent 333c870 commit a622a08
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*jshint multistr:true, devel:true*/
/*global module:false*/

module.exports = function(grunt) {
Expand Down Expand Up @@ -56,7 +57,8 @@ module.exports = function(grunt) {
postBundleCB: function (err, src, next) {
// prepend the banner and fill in placeholders
src = (banner + src).replace(/<%=(.*)%>/g, function (match, expr) {
return eval(expr)
// jshint evil:true
return eval(expr);
});
next(err, src);
}
Expand All @@ -82,7 +84,7 @@ module.exports = function(grunt) {
},
devel: {
files: {
'dist/<%= name %>-<%= pkg.version %>.min.js': ['dist/<%= name %>-<%= pkg.version %>.js']
'dist/<%= name %>-<%= pkg.version %>.min.js': ['dist/<%= name %>-<%= pkg.version %>.js']
}
},
options: {
Expand Down Expand Up @@ -176,7 +178,7 @@ module.exports = function(grunt) {
modified_grammar =
"/* jshint ignore:start */\n" +
modified_grammar +
"\n/* jshint ignore:end */\n"
"\n/* jshint ignore:end */\n";

fs.writeFileSync('src/Grammar/dist/Grammar.js', modified_grammar);
console.log('OK');
Expand Down

0 comments on commit a622a08

Please sign in to comment.