diff --git a/.eslintrc.json b/.eslintrc.json index 24e8c1a8..1b973518 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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", diff --git a/lib/cmds/blockchain/blockchain.js b/lib/cmds/blockchain/blockchain.js index 70ff8800..59c1f2d1 100644 --- a/lib/cmds/blockchain/blockchain.js +++ b/lib/cmds/blockchain/blockchain.js @@ -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'; diff --git a/lib/core/engine.js b/lib/core/engine.js index 2fdbbb4d..852ee804 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -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') { diff --git a/lib/core/test.js b/lib/core/test.js index 6173f87b..8bd1f3bd 100644 --- a/lib/core/test.js +++ b/lib/core/test.js @@ -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); }