Refactor(ES6): Lint fixes
This commit is contained in:
parent
2a76e5ae6b
commit
a9ae64a6c9
|
@ -5,6 +5,6 @@
|
|||
"use strict";
|
||||
|
||||
class OptionsApply {
|
||||
process(options, compiler) { }
|
||||
process(options, compiler) {}
|
||||
}
|
||||
module.exports = OptionsApply;
|
||||
|
|
|
@ -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]
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue