From 787f3b8d6cd86f1682b4cb44b4e44be206cc066e Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Mon, 11 Nov 2024 09:23:24 +0100 Subject: [PATCH] Webpack: Set eslint plugin config to flat to prevent cli errors (#96199) fix(webpack): set eslint plugin config to flat to prevent cli errors --- packages/grafana-plugin-configs/webpack.config.ts | 1 + scripts/webpack/webpack.dev.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/grafana-plugin-configs/webpack.config.ts b/packages/grafana-plugin-configs/webpack.config.ts index d78b9cd3097..14432d95939 100644 --- a/packages/grafana-plugin-configs/webpack.config.ts +++ b/packages/grafana-plugin-configs/webpack.config.ts @@ -212,6 +212,7 @@ const config = async (env: Record): Promise => { path.basename(process.cwd()), '.eslintcache' ), + configType: 'flat', }), ] : []), diff --git a/scripts/webpack/webpack.dev.js b/scripts/webpack/webpack.dev.js index 234bac4fe51..2d359489b12 100644 --- a/scripts/webpack/webpack.dev.js +++ b/scripts/webpack/webpack.dev.js @@ -124,6 +124,7 @@ module.exports = (env = {}) => { cache: true, lintDirtyModulesOnly: true, // don't lint on start, only lint changed files extensions: ['.ts', '.tsx'], + configType: 'flat', }), new MiniCssExtractPlugin({ filename: 'grafana.[name].[contenthash].css',