mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-27 15:35:02 +00:00
remove old jshint directives
This commit is contained in:
parent
a8222df1eb
commit
3b60793b25
@ -1,5 +1,3 @@
|
||||
/*jshint esversion: 6 */
|
||||
|
||||
var EmbarkJS = {};
|
||||
|
||||
EmbarkJS.isNewWeb3 = function() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/*jshint esversion: 6, loopfunc: true */
|
||||
let async = require('../utils/async_extend.js');
|
||||
|
||||
class Compiler {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/*jshint esversion: 6, loopfunc: true */
|
||||
var fs = require('./fs.js');
|
||||
var utils = require('../utils/utils.js');
|
||||
|
||||
|
@ -15,7 +15,7 @@ function doEval(code, _web3) {
|
||||
|
||||
try {
|
||||
// TODO: add trace log here
|
||||
return eval(code); // jshint ignore:line
|
||||
return eval(code);
|
||||
} catch(e) {
|
||||
throw new Error(e + "\n" + code);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ class Console {
|
||||
}
|
||||
|
||||
runCode(code) {
|
||||
RunCode.doEval(code); // jshint ignore:line
|
||||
RunCode.doEval(code);
|
||||
}
|
||||
|
||||
processEmbarkCmd (cmd) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/*jshint esversion: 6 */
|
||||
let async = require('async');
|
||||
// require("./utils/debug_util.js")(__filename, async);
|
||||
|
||||
|
@ -70,7 +70,6 @@ class Solidity {
|
||||
for (let i=0; i<output.errors.length; i++) {
|
||||
if (output.errors[i].type === 'Warning') {
|
||||
self.logger.warn(output.errors[i].formattedMessage);
|
||||
//return callback(new Error("Solidity errors: " + output.errors).message);
|
||||
}
|
||||
if (output.errors[i].type === 'Error' || output.errors[i].severity === 'error') {
|
||||
return callback(new Error("Solidity errors: " + output.errors).message);
|
||||
|
@ -1,4 +1,3 @@
|
||||
/*jshint esversion: 6, loopfunc: true */
|
||||
let fs = require('../core/fs.js');
|
||||
let async = require('async');
|
||||
//var Plugins = require('../core/plugins.js');
|
||||
|
@ -1,4 +1,3 @@
|
||||
/*jshint esversion: 6 */
|
||||
let chokidar = require('chokidar');
|
||||
|
||||
let fs = require('../core/fs.js');
|
||||
|
@ -96,7 +96,7 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
|
||||
throw new Error(err);
|
||||
}
|
||||
self.web3.eth.defaultAccount = accounts[0];
|
||||
RunCode.doEval(result, self.web3); // jshint ignore:line
|
||||
RunCode.doEval(result, self.web3);
|
||||
//cb();
|
||||
cb(accounts);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user