Clean code.

This commit is contained in:
Lars Jung 2015-04-14 01:38:49 +02:00
parent 6137120b2e
commit cdca37e59d
19 changed files with 53 additions and 47 deletions

View file

@ -70,28 +70,11 @@ module.exports = function (suite) {
suite.target('lint', [], 'lint all JavaScript files with JSHint').task(function () {
var jshint = {
// Enforcing Options
bitwise: true,
curly: true,
eqeqeq: true,
forin: true,
latedef: true,
newcap: true,
noempty: true,
plusplus: true,
trailing: true,
undef: true,
// Environments
browser: true
};
var globals = {
modulejs: true
};
var fs = require('fs');
var jshint = JSON.parse(fs.readFileSync('.jshintrc', 'utf8'));
$(src + '/_h5ai/client/js: **/*.js, ! lib/**')
.jshint(jshint, globals);
.jshint(jshint, jshint.globals);
});