Skip to content

Conversation

MattIPv4
Copy link
Member

@MattIPv4 MattIPv4 commented Jun 13, 2025

What this PR does / why we need it:

webpack-contrib/eslint-webpack-plugin#275 fixed the default behaviour to now fail on error, which is quite annoying in development.

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/[email protected]
# or 
yarn add @grafana/[email protected]

Copy link
Contributor

github-actions bot commented Jun 13, 2025

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new patch release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

@MattIPv4 MattIPv4 added create-plugin related to the create-plugin tool patch Increment the patch version when merged release Create a release when this pr is merged labels Jun 13, 2025
@mckn
Copy link
Collaborator

mckn commented Jun 16, 2025

Thanks for the contribution @MattIPv4. Can you elaborate a bit more on why you want to disable this for non-production mode? Just so we understand the reason behind this change.

@MattIPv4
Copy link
Member Author

Sure, there are essentially two reasons behind this:

  • Ensuring that the config has the same behaviour whether you're using eslint-webpack-plugin v4 or v5 (in v4 this defaulted to false, in v5 it defaults to true)
  • When you're working in development with webpack in watch mode and an IDE that auto-saves, if you auto-save invalid syntax with failOnError enabled (if the IDE auto-saves as you're still typing a change for example), the entire webpack process exits which is very annoying

@jackw
Copy link
Collaborator

jackw commented Jun 16, 2025

Ok, thanks for the explanation @MattIPv4 that makes sense now. 👍

Copy link
Collaborator

@jackw jackw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@github-project-automation github-project-automation bot moved this from 📬 Triage to 🔬 In review in Plugins Platform / Grafana Community Jun 16, 2025
@MattIPv4 MattIPv4 merged commit 1bbb6ac into main Jun 16, 2025
25 of 26 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/fix-webpack-eslint-fail branch June 16, 2025 13:54
@github-project-automation github-project-automation bot moved this from 🔬 In review to 🚀 Shipped in Plugins Platform / Grafana Community Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-plugin related to the create-plugin tool patch Increment the patch version when merged release Create a release when this pr is merged

Projects

Development

Successfully merging this pull request may close these issues.

3 participants