Refactor(ES6): Lint fixes

This commit is contained in:
SendilKumar N 2017-02-22 16:12:24 +08:00
parent 2a76e5ae6b
commit a9ae64a6c9
2 changed files with 4 additions and 4 deletions

View File

@ -5,6 +5,6 @@
"use strict";
class OptionsApply {
process(options, compiler) { }
process(options, compiler) {}
}
module.exports = OptionsApply;

View File

@ -25,8 +25,8 @@ class ProgressPlugin {
compiler.compilers.forEach(function(compiler, idx) {
compiler.apply(new ProgressPlugin((p, msg) => {
states[idx] = Array.prototype.slice.apply(arguments);
handler(...[
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
handler.apply(null, [
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
`[${idx}] ${msg}`
].concat(Array.prototype.slice.call(arguments, 2)));
}));
@ -42,7 +42,7 @@ class ProgressPlugin {
0.1 + (doneModules / Math.max(lastModulesCount, moduleCount)) * 0.6,
"building modules",
`${doneModules}/${moduleCount} modules`,
`${activeModules.length} active`,
`${activeModules.length} active`,
activeModules[activeModules.length - 1]
);
};