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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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()),
'.eslintcache'
),
configType: 'flat',
}),
]
: []),

View File

@ -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',