mirror of
https://github.com/grafana/grafana.git
synced 2024-12-23 15:40:19 -06:00
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:
parent
e22deeac04
commit
787f3b8d6c
@ -212,6 +212,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
|
||||
path.basename(process.cwd()),
|
||||
'.eslintcache'
|
||||
),
|
||||
configType: 'flat',
|
||||
}),
|
||||
]
|
||||
: []),
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user