diff --git a/package.json b/package.json index 8ad2fb7eb7a..089efb9234e 100644 --- a/package.json +++ b/package.json @@ -199,7 +199,7 @@ "eslint-plugin-testing-library": "^7.0.0", "eslint-plugin-unicorn": "^56.0.0", "eslint-scope": "^8.1.0", - "eslint-webpack-plugin": "4.2.0", + "eslint-webpack-plugin": "5.0.2", "expose-loader": "5.0.1", "fishery": "^2.2.2", "fork-ts-checker-webpack-plugin": "9.1.0", diff --git a/packages/grafana-plugin-configs/package.json b/packages/grafana-plugin-configs/package.json index c22258285c0..aebe52115bc 100644 --- a/packages/grafana-plugin-configs/package.json +++ b/packages/grafana-plugin-configs/package.json @@ -16,7 +16,7 @@ "@types/webpack-bundle-analyzer": "^4.7.0", "copy-webpack-plugin": "13.0.0", "eslint": "9.32.0", - "eslint-webpack-plugin": "4.2.0", + "eslint-webpack-plugin": "5.0.2", "fork-ts-checker-webpack-plugin": "9.1.0", "glob": "11.0.3", "identity-obj-proxy": "^3.0.0", diff --git a/packages/grafana-plugin-configs/webpack.config.ts b/packages/grafana-plugin-configs/webpack.config.ts index c1bfc469d7b..d241442595e 100644 --- a/packages/grafana-plugin-configs/webpack.config.ts +++ b/packages/grafana-plugin-configs/webpack.config.ts @@ -273,6 +273,7 @@ const config = async (env: Env): Promise => { '.eslintcache' ), configType: 'flat', + failOnError: false, }), ] : []), diff --git a/scripts/webpack/webpack.dev.js b/scripts/webpack/webpack.dev.js index 20c8c38c46c..050f54a2c3a 100644 --- a/scripts/webpack/webpack.dev.js +++ b/scripts/webpack/webpack.dev.js @@ -149,6 +149,7 @@ module.exports = (env = {}) => { lintDirtyModulesOnly: true, // don't lint on start, only lint changed files extensions: ['.ts', '.tsx'], configType: 'flat', + failOnError: false, }), new MiniCssExtractPlugin({ filename: 'grafana.[name].[contenthash].css', diff --git a/yarn.lock b/yarn.lock index fe596ec0046..2ef8aee0375 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3419,7 +3419,7 @@ __metadata: "@types/webpack-bundle-analyzer": "npm:^4.7.0" copy-webpack-plugin: "npm:13.0.0" eslint: "npm:9.32.0" - eslint-webpack-plugin: "npm:4.2.0" + eslint-webpack-plugin: "npm:5.0.2" fork-ts-checker-webpack-plugin: "npm:9.1.0" glob: "npm:11.0.3" identity-obj-proxy: "npm:^3.0.0" @@ -9371,7 +9371,7 @@ __metadata: languageName: node linkType: hard -"@types/eslint@npm:*, @types/eslint@npm:9.6.1": +"@types/eslint@npm:*, @types/eslint@npm:9.6.1, @types/eslint@npm:^9.6.1": version: 9.6.1 resolution: "@types/eslint@npm:9.6.1" dependencies: @@ -9381,16 +9381,6 @@ __metadata: languageName: node linkType: hard -"@types/eslint@npm:^8.56.10": - version: 8.56.10 - resolution: "@types/eslint@npm:8.56.10" - dependencies: - "@types/estree": "npm:*" - "@types/json-schema": "npm:*" - checksum: 10/0cdd914b944ebba51c35827d3ef95bc3e16eb82b4c2741f6437fa57cdb00a4407c77f89c220afe9e4c9566982ec8a0fb9b97c956ac3bd4623a3b6af32eed8424 - languageName: node - linkType: hard - "@types/estree@npm:*, @types/estree@npm:1.0.8, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.5, @types/estree@npm:^1.0.6, @types/estree@npm:^1.0.8": version: 1.0.8 resolution: "@types/estree@npm:1.0.8" @@ -16377,19 +16367,20 @@ __metadata: languageName: node linkType: hard -"eslint-webpack-plugin@npm:4.2.0": - version: 4.2.0 - resolution: "eslint-webpack-plugin@npm:4.2.0" +"eslint-webpack-plugin@npm:5.0.2": + version: 5.0.2 + resolution: "eslint-webpack-plugin@npm:5.0.2" dependencies: - "@types/eslint": "npm:^8.56.10" + "@types/eslint": "npm:^9.6.1" + flatted: "npm:^3.3.3" jest-worker: "npm:^29.7.0" - micromatch: "npm:^4.0.5" + micromatch: "npm:^4.0.8" normalize-path: "npm:^3.0.0" - schema-utils: "npm:^4.2.0" + schema-utils: "npm:^4.3.0" peerDependencies: eslint: ^8.0.0 || ^9.0.0 webpack: ^5.0.0 - checksum: 10/061d11a93832b82bd0362d6c546f51fe5e3a0eb811374b86536a2929ff46fea7e5ef30e32f0d3194b9da146a7c0ae43f13b2ec5ce0f65a9ca9c4d961d9e446b3 + checksum: 10/b50370fb530b7543366a1360639c2a86cacadb88d364b393c3055b093fec5034122b4ee0e0b9247b002b6659e360a08c68d6361d07db1b1dcf547e549331f076 languageName: node linkType: hard @@ -18389,7 +18380,7 @@ __metadata: eslint-plugin-testing-library: "npm:^7.0.0" eslint-plugin-unicorn: "npm:^56.0.0" eslint-scope: "npm:^8.1.0" - eslint-webpack-plugin: "npm:4.2.0" + eslint-webpack-plugin: "npm:5.0.2" expose-loader: "npm:5.0.1" fast-deep-equal: "npm:^3.1.3" fast-json-patch: "npm:3.1.1"