fix eslint issues

This commit is contained in:
Iuri Matias 2017-12-13 19:49:05 -05:00
parent 6098d3cca6
commit 9211279f8e
6 changed files with 16 additions and 19 deletions

View File

@ -1,3 +1,4 @@
/*eslint no-unused-vars: off*/
let Web3 = require('web3');
let web3;
let __mainContext;

View File

@ -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

View File

@ -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.

View File

@ -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) {

View File

@ -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);

View File

@ -1,4 +1,3 @@
/*global exit */
let path = require('path');
let globule = require('globule');
let merge = require('merge');