mirror of
https://github.com/grafana/grafana.git
synced 2025-07-27 09:52:17 +08:00
Chore: Introduce yarn start:noLint (#64430)
chore(webpack): introduce start:noLint to bypass typecheck and lint plugins during dev
This commit is contained in:
@ -91,11 +91,13 @@ module.exports = (env = {}) => {
|
||||
},
|
||||
},
|
||||
}),
|
||||
new ESLintPlugin({
|
||||
cache: true,
|
||||
lintDirtyModulesOnly: true, // don't lint on start, only lint changed files
|
||||
extensions: ['.ts', '.tsx'],
|
||||
}),
|
||||
parseInt(env.noLint, 10)
|
||||
? new DefinePlugin({}) // bogus plugin to satisfy webpack API
|
||||
: new ESLintPlugin({
|
||||
cache: true,
|
||||
lintDirtyModulesOnly: true, // don't lint on start, only lint changed files
|
||||
extensions: ['.ts', '.tsx'],
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: 'grafana.[name].[contenthash].css',
|
||||
}),
|
||||
|
Reference in New Issue
Block a user