Skip to content

Commit eba8501

Browse files
committed
webpack: Fail on eslint warnings
Ensures we don't merge code with eslint warnings.
1 parent 9662fb2 commit eba8501

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ const copy_files = [
2525
const plugins = [
2626
new copy({ patterns: copy_files }),
2727
new extract({filename: "[name].css"}),
28-
new ESLintPlugin({ extensions: ["js", "jsx"] }),
28+
new ESLintPlugin({
29+
extensions: ["js", "jsx"],
30+
failOnWarning: true,
31+
}),
2932
new CockpitPoPlugin(),
3033
new CockpitRsyncPlugin({dest: packageJson.name}),
3134
];

0 commit comments

Comments
 (0)