Skip to content

Commit

Permalink
fix: check for supportedExtenions after filtering ignored files (#143)
Browse files Browse the repository at this point in the history
Co-authored-by: Ullas Holla <[email protected]>
  • Loading branch information
ullasholla and ullasholla authored Nov 16, 2021
1 parent f11faa9 commit 5cb47e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export default (

const changedFiles = scm
.getChangedFiles(directory, revision, staged)
.filter(isSupportedExtension(resolveConfig))
.filter(createMatcher(pattern))
.filter(rootIgnorer)
.filter(cwdIgnorer);
.filter(cwdIgnorer)
.filter(isSupportedExtension(resolveConfig));

const unstagedFiles = staged
? scm
Expand Down

0 comments on commit 5cb47e6

Please sign in to comment.