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 {
7272 const options = {
7373 ...this . options ,
7474 exclude : parseFiles (
75- this . options . exclude || 'node_modules' ,
75+ this . options . exclude || [ ] ,
7676 this . getContext ( compiler )
7777 ) ,
7878 extensions : arrify ( this . options . extensions ) ,
7979 files : parseFiles ( this . options . files || '' , this . getContext ( compiler ) ) ,
8080 } ;
8181
8282 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+ ) ;
8487
8588 compiler . hooks . thisCompilation . tap ( ESLINT_PLUGIN , ( compilation ) => {
8689 /** @type {import('./linter').Linter } */
You can’t perform that action at this time.
0 commit comments