Skip to content

Commit

Permalink
Reverse ignore filter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsousaio committed Jul 27, 2022
1 parent cae0d54 commit 5754085
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const runEslint = async (inputs: Inputs): Promise<void> => {
const isFileSupported = inputs.extensions.find((ext) => filename.endsWith(`.${ext}`));
return isFileSupported;
})
.filter((filename) => ig.ignores(filename));
.filter((filename) => !ig.ignores(filename));

if (files.length === 0) {
notice('No files found. Skipping.');
Expand Down

0 comments on commit 5754085

Please sign in to comment.