File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,18 @@ class ESLintWebpackPlugin {
72
72
const options = {
73
73
...this . options ,
74
74
exclude : parseFiles (
75
- this . options . exclude || 'node_modules' ,
75
+ this . options . exclude || [ ] ,
76
76
this . getContext ( compiler )
77
77
) ,
78
78
extensions : arrify ( this . options . extensions ) ,
79
79
files : parseFiles ( this . options . files || '' , this . getContext ( compiler ) ) ,
80
80
} ;
81
81
82
82
const wanted = parseFoldersToGlobs ( options . files , options . extensions ) ;
83
- const exclude = parseFoldersToGlobs ( options . exclude , [ ] ) ;
83
+ const exclude = parseFoldersToGlobs (
84
+ this . options . exclude ? options . exclude : '**/node_modules/**' ,
85
+ [ ]
86
+ ) ;
84
87
85
88
compiler . hooks . thisCompilation . tap ( ESLINT_PLUGIN , ( compilation ) => {
86
89
/** @type {import('./linter').Linter } */
You can’t perform that action at this time.
0 commit comments