Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 3dabb4d

Browse files
authored
fix: don't match config with ignores and name only (#133)
1 parent 1a73c27 commit 3dabb4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function pathMatchesIgnores(filePath, basePath, config) {
334334
*/
335335
const relativeFilePath = path.relative(basePath, filePath);
336336

337-
return Object.keys(config).length > 1 &&
337+
return Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 &&
338338
!shouldIgnorePath(config.ignores, filePath, relativeFilePath);
339339
}
340340

0 commit comments

Comments
 (0)