webpack: Fail on eslint warnings
Ensures we don't merge code with eslint warnings.
This commit is contained in:
parent
9662fb2ffc
commit
a9b9484166
1 changed files with 4 additions and 1 deletions
|
|
@ -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}),
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue