diff --git a/packages/create-plugin/templates/common/.config/webpack/webpack.config.ts b/packages/create-plugin/templates/common/.config/webpack/webpack.config.ts index 7de0408726..860c89414f 100644 --- a/packages/create-plugin/templates/common/.config/webpack/webpack.config.ts +++ b/packages/create-plugin/templates/common/.config/webpack/webpack.config.ts @@ -256,6 +256,7 @@ const config = async (env: Env): Promise => { new ESLintPlugin({ extensions: ['.ts', '.tsx'], lintDirtyModulesOnly: Boolean(env.development), // don't lint on start, only lint changed files + failOnError: Boolean(env.production), }), ] : []), ],