mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-29 20:44:05 +00:00
pre eslint
This commit is contained in:
@@ -12,7 +12,7 @@ const FilterItem = ({
|
||||
{labelArray.length > 0
|
||||
? <div className={styles.labelWrap}>
|
||||
{labelArray.map((item, index) => <span className="labelText" key={index}>{item}</span>)}
|
||||
</div>
|
||||
</div>
|
||||
: ''}
|
||||
<div className={styles.item}>
|
||||
{children}
|
||||
|
||||
@@ -12,5 +12,12 @@ module.exports = (webpackConfig) => {
|
||||
cssLoaders[1] = `css?${JSON.stringify(cssLoaderOption)}`
|
||||
webpackConfig.module.loaders[3].loader = cssLoaders.join('!')
|
||||
|
||||
// PreLoaders
|
||||
webpackConfig.module.preLoaders = [{
|
||||
test: /\.js$/,
|
||||
enforce: 'pre',
|
||||
loader: 'eslint',
|
||||
}]
|
||||
|
||||
return webpackConfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user