mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-10 22:05:55 +00:00
fix eslint issues
This commit is contained in:
parent
1271602ad5
commit
c55b011675
@ -188,6 +188,7 @@
|
||||
"no-useless-computed-key": "error",
|
||||
"no-useless-concat": "error",
|
||||
"no-useless-constructor": "error",
|
||||
"no-useless-escape": "off",
|
||||
"no-useless-rename": "error",
|
||||
"no-useless-return": "off",
|
||||
"no-var": "off",
|
||||
|
@ -4,7 +4,7 @@ var fs = require('../../core/fs.js');
|
||||
|
||||
var GethCommands = require('./geth_commands.js');
|
||||
|
||||
/*eslint complexity: ["error", 22]*/
|
||||
/*eslint complexity: ["error", 25]*/
|
||||
var Blockchain = function(options) {
|
||||
this.blockchainConfig = options.blockchainConfig;
|
||||
this.env = options.env || 'development';
|
||||
|
@ -133,7 +133,7 @@ class Engine {
|
||||
events: this.events
|
||||
});
|
||||
|
||||
this.events.on('file-event', function (fileType, _path) {
|
||||
this.events.on('file-event', function (_fileType, _path) {
|
||||
// TODO: for now need to deploy on asset chanes as well
|
||||
// because the contractsManager config is corrupted after a deploy
|
||||
//if (fileType === 'contract' || fileType === 'config') {
|
||||
|
@ -1,17 +1,10 @@
|
||||
var async = require('async');
|
||||
var Web3 = require('web3');
|
||||
|
||||
var Embark = require('../index.js');
|
||||
|
||||
var Engine = require('./engine.js');
|
||||
|
||||
var Deploy = require('../contracts/deploy.js');
|
||||
|
||||
var Config = require('./config.js');
|
||||
var RunCode = require('./runCode.js');
|
||||
var TestLogger = require('./test_logger.js');
|
||||
var web3;
|
||||
var __mainContext;
|
||||
|
||||
var getSimulator = function() {
|
||||
try {
|
||||
@ -77,7 +70,7 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
|
||||
});
|
||||
});
|
||||
|
||||
self.engine.deployManager.deployContracts(function(err, result) {
|
||||
self.engine.deployManager.deployContracts(function(err, _result) {
|
||||
console.log("deployed contracts");
|
||||
if (err) {
|
||||
console.log(err);
|
||||
@ -92,7 +85,7 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
|
||||
}
|
||||
// this should be part of the waterfall and not just something done at the
|
||||
// end
|
||||
self.web3.eth.getAccounts(function(err, accounts) {
|
||||
self.web3.eth.getAccounts(function(err, accounts) {
|
||||
if (err) {
|
||||
throw new Error(err);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user