Skip to content

Commit

Permalink
[Webpack] fix ESLintPlugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
ShynRou committed Jul 21, 2021
1 parent 689d313 commit 6f2280a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,12 @@ module.exports = function (webpackEnv) {
plugins: [
new ESLintPlugin({
threads: true,
extensions: ['js', 'jsx', 'ts', 'tsx'],
context: path.resolve(__dirname, '../'),
overrideConfigFile: path.resolve(__dirname, '../.eslintrc.js'),
emitWarning: true,
emitError: true,
failOnError: true,
formatter: require.resolve('react-dev-utils/eslintFormatter'),
eslintPath: require.resolve('eslint'),
}),
Expand Down

0 comments on commit 6f2280a

Please sign in to comment.