Skip to content

Commit

Permalink
fix: don't match config with ignores and name only (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Apr 3, 2024
1 parent 1a73c27 commit 3dabb4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function pathMatchesIgnores(filePath, basePath, config) {
*/
const relativeFilePath = path.relative(basePath, filePath);

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

Expand Down

0 comments on commit 3dabb4d

Please sign in to comment.