webpack: Fail on eslint warnings

Ensures we don't merge code with eslint warnings.
This commit is contained in:
Jelle van der Waa 2022-01-17 10:25:45 +01:00 committed by Martin Pitt
parent 9662fb2ffc
commit a9b9484166

View file

@ -25,7 +25,10 @@ const copy_files = [
const plugins = [
new copy({ patterns: copy_files }),
new extract({filename: "[name].css"}),
new ESLintPlugin({ extensions: ["js", "jsx"] }),
new ESLintPlugin({
extensions: ["js", "jsx"],
failOnWarning: true,
}),
new CockpitPoPlugin(),
new CockpitRsyncPlugin({dest: packageJson.name}),
];