diff --git a/lib/core/runCode.js b/lib/core/runCode.js index 3a32606b..43bf4ea8 100644 --- a/lib/core/runCode.js +++ b/lib/core/runCode.js @@ -1,3 +1,4 @@ +/*eslint no-unused-vars: off*/ let Web3 = require('web3'); let web3; let __mainContext; diff --git a/lib/core/test_logger.js b/lib/core/test_logger.js index 0d85baa0..e83c5e00 100644 --- a/lib/core/test_logger.js +++ b/lib/core/test_logger.js @@ -1,4 +1,4 @@ -let colors = require('colors'); +require('colors'); // TODO: just logFunction changes, probably doesn't need a whole new module just // for this diff --git a/lib/pipeline/npm.js b/lib/pipeline/npm.js index 6a7c3cfc..3bc41995 100644 --- a/lib/pipeline/npm.js +++ b/lib/pipeline/npm.js @@ -32,7 +32,7 @@ class Npm { var download = function(url, dest, cb) { var file = o_fs.createWriteStream(dest); - var _request = (url.substring(0,5) === 'https' ? https : http).get(url, function(response) { + (url.substring(0,5) === 'https' ? https : http).get(url, function(response) { response.pipe(file); file.on('finish', function() { file.close(cb); // close() is async, call cb after close completes. diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 19f495a5..ef7a93eb 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -1,10 +1,10 @@ /*jshint esversion: 6, loopfunc: true */ let fs = require('../core/fs.js'); let async = require('async'); -var Plugins = require('../core/plugins.js'); +//var Plugins = require('../core/plugins.js'); var utils = require('../utils/utils.js'); -var Npm = require('../pipeline/npm.js'); -let currentWeb3Version = require('../../package.json').dependencies.web3.replace("^",""); +//var Npm = require('../pipeline/npm.js'); +//let currentWeb3Version = require('../../package.json').dependencies.web3.replace("^",""); const webpack = require("webpack"); class Pipeline { @@ -69,13 +69,13 @@ class Pipeline { { test: /\.css$/, use: [ - { loader: "style-loader" }, - { loader: "css-loader" } + {loader: "style-loader"}, + {loader: "css-loader"} ] } ] } - }).run((err, stats) => { + }).run((_err, _stats) => { next(); }); }, @@ -103,15 +103,15 @@ class Pipeline { { test: /\.css$/, use: [ - { loader: "style-loader" }, - { loader: "css-loader" } + {loader: "style-loader"}, + {loader: "css-loader"} ] }, { test: /\.scss$/, use: [ - { loader: "style-loader" }, - { loader: "css-loader" } + {loader: "style-loader"}, + {loader: "css-loader"} ] }, { @@ -120,13 +120,13 @@ class Pipeline { } ] } - }).run((err, stats) => { + }).run((_err, _stats) => { next(); }); } - ], function(err, _result) { + ], function(_err, _result) { let fileContent = fs.readFileSync('./.embark/' + file.filename).toString(); fileCb(null, {content: fileContent, filename: file.filename, path: file.path, modified: true}); }); @@ -364,9 +364,6 @@ class Pipeline { // //} - - - } }, function (err, contentFiles) { diff --git a/lib/upload/ipfs.js b/lib/upload/ipfs.js index 86670bf5..8bf42c98 100644 --- a/lib/upload/ipfs.js +++ b/lib/upload/ipfs.js @@ -46,7 +46,7 @@ class IPFS { return callback(); } - ], function (err, result) { + ], function (err, _result) { if (err) { console.log("error uploading to ipfs".red); console.log(err); diff --git a/lib/utils/utils.js b/lib/utils/utils.js index bd447c8b..cae503f4 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -1,4 +1,3 @@ -/*global exit */ let path = require('path'); let globule = require('globule'); let merge = require('merge');