Ignore .gitignored files (#14731)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-05-04 17:20:05 +08:00
1 parent dcc081db0d
commit b86e42cc84
20 files changed
+228 -121

No files matched your search

@@ -31,6 +31,18 @@ module.exports = {
return;
}
// wrapped
// `const runCliWithoutGitignore = () => runCli()`
// `const runCliWithoutGitignore = () => { return runCli() }`
if (
(parent.type === "ArrowFunctionExpression" &&
parent.body === callExpression) ||
(parent.type === "ReturnStatement" &&
parent.argument === callExpression)
) {
return;
}
if (
parent.type === "MemberExpression" &&
parent.object === callExpression &&