1821b5a1 by Adam Heath

Configure jshint, and fix the errors it reported.

1 parent e4b534f3
......@@ -7,6 +7,23 @@ module.exports = function(grunt) {
var config = {};
config.jshint = {
options: {
reporter: require('jshint-stylish'),
esnext: true,
bitwise: true,
camelcase: true,
curly: true,
eqeqeq: true,
immed: true,
indent: 4,
latedef: true,
newcap: true,
noarg: true,
proto: true,
quotmark: 'single',
undef: true,
unused: 'vars',
strict: true,
},
all: [
'grunt-monty-python.js',
......
/* global module:false */
/*
* grunt-monty-python
*
......@@ -5,6 +6,7 @@
module.exports = function (grunt) {
/* global require:false */
'use strict';
var _ = require('lodash');
......@@ -87,7 +89,6 @@ module.exports = function (grunt) {
];
*/
for (var key in requireModules) {
var keyS = JSON.stringify(key);
var value = requireModules[key];
var included = [];
for (var i = 0; i < value.length; i++) {
......@@ -139,7 +140,6 @@ module.exports = function (grunt) {
base: 'src',
}, mpConfig);
var featureFlags = {};
var holyGrailTmp = '.grunt/holygrail';
var initConfig = {
clean: {
......@@ -282,6 +282,7 @@ module.exports = function (grunt) {
var htmlSourceDir;
if (mpConfig.punch) {
grunt.registerMultiTask('punch', 'run punch externally to create html files', function() {
/* jshint camelcase:false */
var done = this.async();
var options = this.options();
var target = this.target;
......
......@@ -29,6 +29,7 @@
"grunt-rev": "~0",
"grunt-svgmin": "~0",
"grunt-usemin": "~2",
"jshint-stylish": "~0",
"load-grunt-tasks": "~0",
"lodash": "~2",
"punch": "~0.5.46",
......