jshint it

This commit is contained in:
Iuri Matias 2016-09-24 21:23:57 -04:00
parent 03f81c47d7
commit 3a5891810a
4 changed files with 13 additions and 13 deletions

View File

@ -4,7 +4,7 @@ var Console = function(options) {
};
Console.prototype.runCode = function(code) {
eval(code);
eval(code); // jshint ignore:line
};
Console.prototype.executeCmd = function(cmd, callback) {
@ -20,10 +20,10 @@ Console.prototype.executeCmd = function(cmd, callback) {
return callback(helpText.join('\n'));
} else if (cmd === 'quit') {
exit();
};
}
try {
var result = eval(cmd);
var result = eval(cmd); // jshint ignore:line
return callback(result);
}
catch(e) {

View File

@ -1,5 +1,4 @@
/* eslint-disable */
"use strict";
/*jshint esversion: 6 */
var blessed = require("blessed");

View File

@ -1,3 +1,4 @@
/*jshint esversion: 6, loopfunc: true */
var fs = require('fs');
var grunt = require('grunt');
var mkdirp = require('mkdirp');
@ -13,7 +14,7 @@ Pipeline.prototype.build = function(abi) {
var self = this;
for(var targetFile in this.assetFiles) {
var content = this.assetFiles[targetFile].map(function(file) {
var content = this.assetFiles[targetFile].map(file => {
self.logger.info("reading " + file.filename);
if (file.filename === 'embark.js') {
return file.content + "\n" + abi;

View File

@ -24,15 +24,15 @@ Watch.prototype.start = function() {
});
assetWatcher
.on('add', path => {
this.logger.info(`File ${path} has been added`)
this.logger.info(`File ${path} has been added`);
this.trigger('rebuildAssets', path);
})
.on('change', path => {
this.logger.info(`File ${path} has been changed`)
this.logger.info(`File ${path} has been changed`);
this.trigger('rebuildAssets', path);
})
.on('unlink', path => {
this.logger.info(`File ${path} has been removed`)
this.logger.info(`File ${path} has been removed`);
this.trigger('rebuildAssets', path);
})
.on('ready', () => this.logger.info('ready to watch changes'));
@ -45,7 +45,7 @@ Watch.prototype.start = function() {
});
contractWatcher
.on('add', path => {
this.logger.info(`File ${path} has been added`)
this.logger.info(`File ${path} has been added`);
this.trigger('redeploy', path);
})
.on('change', path => {
@ -61,15 +61,15 @@ Watch.prototype.start = function() {
});
configWatcher
.on('add', path => {
this.logger.info(`File ${path} has been added`)
this.logger.info(`File ${path} has been added`);
this.trigger('redeploy', path);
})
.on('change', path => {
this.logger.info(`File ${path} has been changed`)
this.logger.info(`File ${path} has been changed`);
this.trigger('redeploy', path);
})
.on('unlink', path => {
this.logger.info(`File ${path} has been removed`)
this.logger.info(`File ${path} has been removed`);
this.trigger('redeploy', path);
})
.on('ready', () => this.logger.info('ready to watch changes'));