Skip to content

Commit af01b28

Browse files
author
Monster
committed
style: lint
1 parent b7f95db commit af01b28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function findFirstDFS(compilation, key) {
2727
}
2828
}
2929

30-
WebpackNotifierPlugin.prototype.compileEndOptions = function (stats) {
30+
WebpackNotifierPlugin.prototype.compileEndOptions = function compileEndOptions(stats) {
3131
if (this.isFirstBuild) {
3232
this.isFirstBuild = false;
3333

@@ -100,17 +100,17 @@ WebpackNotifierPlugin.prototype.compileEndOptions = function (stats) {
100100
};
101101
};
102102

103-
WebpackNotifierPlugin.prototype.hasErrors = function (stats) {
103+
WebpackNotifierPlugin.prototype.hasErrors = function hasErrors(stats) {
104104
return stats.hasErrors()
105105
|| stats.compilation.children.some(child => child.getStats().hasErrors());
106106
};
107107

108-
WebpackNotifierPlugin.prototype.hasWarnings = function (stats) {
108+
WebpackNotifierPlugin.prototype.hasWarnings = function hasWarnings(stats) {
109109
return stats.hasWarnings()
110110
|| stats.compilation.children.some(child => child.getStats().hasWarnings());
111111
};
112112

113-
WebpackNotifierPlugin.prototype.compilationDone = function (stats) {
113+
WebpackNotifierPlugin.prototype.compilationDone = function compilationDone(stats) {
114114
var { message, contentImage, status } = this.compileEndOptions(stats);
115115
if (message) {
116116
var title = this.options.title ? this.options.title : 'Webpack';
@@ -139,7 +139,7 @@ WebpackNotifierPlugin.prototype.compilationDone = function (stats) {
139139
}
140140
};
141141

142-
WebpackNotifierPlugin.prototype.apply = function (compiler) {
142+
WebpackNotifierPlugin.prototype.apply = function apply(compiler) {
143143
if (compiler.hooks) {
144144
var plugin = { name: 'Notifier' };
145145

0 commit comments

Comments
 (0)