mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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:
@@ -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',
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user