Webpack: Set eslint plugin config to flat to prevent cli errors (#96199)

fix(webpack): set eslint plugin config to flat to prevent cli errors
This commit is contained in:
Jack Westbrook
2024-11-11 09:23:24 +01:00
committed by GitHub
parent e22deeac04
commit 787f3b8d6c
2 changed files with 2 additions and 0 deletions

View File

@@ -212,6 +212,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
path.basename(process.cwd()), path.basename(process.cwd()),
'.eslintcache' '.eslintcache'
), ),
configType: 'flat',
}), }),
] ]
: []), : []),

View File

@@ -124,6 +124,7 @@ module.exports = (env = {}) => {
cache: true, cache: true,
lintDirtyModulesOnly: true, // don't lint on start, only lint changed files lintDirtyModulesOnly: true, // don't lint on start, only lint changed files
extensions: ['.ts', '.tsx'], extensions: ['.ts', '.tsx'],
configType: 'flat',
}), }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: 'grafana.[name].[contenthash].css', filename: 'grafana.[name].[contenthash].css',