Skip to content

Commit bb8750c

Browse files
fix: match hidden directories for path exclusions (#87)
* fix: 🐛 Match hidden directories for path exclusions Globstars don't match paths with hidden directories by default: isaacs/minimatch#51 This means the default `exclude` option of `**/node_modules/**` will fail for projects anchored at a path like /foo/.bar/. E.g. it is fairly common for developers to mimic FHS directory structures in their home directory using `.local`, meaning repositories are cloned within `~/.local/src/`, which would not be matched by the default globstar. In all likelihood most users would expect matching hidden directories to be the default behaviour. * fix: match hidden directories and files for path Co-authored-by: Ricardo Gobbo de Souza <[email protected]>
1 parent 0b83cc5 commit bb8750c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class ESLintWebpackPlugin {
110110
if (
111111
file &&
112112
!files.includes(file) &&
113-
isMatch(file, wanted) &&
114-
!isMatch(file, exclude)
113+
isMatch(file, wanted, { dot: true }) &&
114+
!isMatch(file, exclude, { dot: true })
115115
) {
116116
files.push(file);
117117
}

0 commit comments

Comments
 (0)