Skip to content

Commit

Permalink
Ignore more folders by default
Browse files Browse the repository at this point in the history
  • Loading branch information
max-leuthaeuser authored Oct 27, 2022
1 parent f1a4cf4 commit 12a2566
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@ const IGNORE_DIRS = [
"test",
"tests",
"e2e",
"e2e-beta",
"examples",
"cypress",
"jest-cache",
"eslint-rules",
"codemods",
"flow-typed",
"i18n",
"vendor",
"www",
"dist",
"build",
];

const IGNORE_FILE_PATTERN = new RegExp("(conf|test|spec)\\.(js|ts)$", "i");
Expand All @@ -34,6 +44,7 @@ const getAllFiles = (dir, extn, files, result, regex) => {
const dirName = path.basename(file);
if (
dirName.startsWith(".") ||
dirName.startsWith("__") ||
IGNORE_DIRS.includes(dirName.toLowerCase())
) {
continue;
Expand Down

0 comments on commit 12a2566

Please sign in to comment.