pre eslint

This commit is contained in:
zuiidea
2017-06-07 20:16:15 +08:00
parent 05a86e2f56
commit 2e3cb5970d
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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}
+7
View File
@@ -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
}