Skip to content

Commit 870fb8a

Browse files
style: formatting
1 parent 4ef97cd commit 870fb8a

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ class ESLintWebpackPlugin {
169169
await generateReportAsset(compilation);
170170
}
171171

172-
if (warnings && options.failOnWarning) {
173-
callback(warnings);
174-
} else if (errors && options.failOnError) {
175-
callback(errors);
176-
} else {
177-
callback();
178-
}
172+
if (warnings && options.failOnWarning) {
173+
callback(warnings);
174+
} else if (errors && options.failOnError) {
175+
callback(errors);
176+
} else {
177+
callback();
178+
}
179179
},
180180
);
181181
});

test/lint-dirty-modules-only.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ describe('lint dirty modules only', () => {
4141
expect(stats.hasErrors()).toBe(true);
4242
const { errors } = stats.compilation;
4343
expect(errors.length).toBe(1);
44-
expect(stats.compilation.errors[0].message).toEqual(expect.stringMatching('no-unused-vars'));
44+
expect(stats.compilation.errors[0].message).toEqual(
45+
expect.stringMatching('no-unused-vars'),
46+
);
4547
done();
4648
}
4749
});

0 commit comments

Comments
 (0)