Skip to content

Commit

Permalink
webpack: Fail on eslint warnings
Browse files Browse the repository at this point in the history
Ensures we don't merge code with eslint warnings.
  • Loading branch information
jelly authored and martinpitt committed Jan 17, 2022
1 parent 9662fb2 commit a9b9484
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}),
];
Expand Down

0 comments on commit a9b9484

Please sign in to comment.