Skip to content

Commit 09874c3

Browse files
committed
fix(eslint): fix webpack eslint config
1 parent db8113f commit 09874c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/config/webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const path = require('path')
2-
const assign = require('lodash.assign')
32
const debug = require('debug')('pixore')
43
const webpack = require('webpack')
54
const HtmlWebpackPlugin = require('html-webpack-plugin')
@@ -27,9 +26,10 @@ const modules = {
2726
loader: 'eslint-loader',
2827
enforce: 'pre',
2928
exclude: /node_modules|webpackHotDevClient/,
30-
options: assign({
31-
cacheDirectory: true
32-
}, require(ESLINT_PATH))
29+
options: {
30+
cacheDirectory: true,
31+
configFile: ESLINT_PATH
32+
}
3333
}, {
3434
test: /\.js$/,
3535
exclude: /node_modules/,

0 commit comments

Comments
 (0)