Skip to content

Commit

Permalink
fix: skip files and dirs started from dot (eg .eslintrc.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Jun 8, 2020
1 parent 27a028f commit 15cf3e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__tests__/__testSchema__/query/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: '../../../../.eslintrc',
};
5 changes: 5 additions & 0 deletions src/directoryToAst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ function checkInclusion(
return false;
}

// Skip dir/files started from dot
if (/^\..*/i.test(filename)) {
return false;
}

if (kind === 'file') {
if (
// Verify file has valid extension
Expand Down

0 comments on commit 15cf3e6

Please sign in to comment.