Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 3d1227f

Browse files
author
steelbrain
committed
🆕 Add getIgnoresFile helper
1 parent 6465ecd commit 3d1227f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export function getModulesDirectory(fileDir) {
4242
return find(fileDir, 'node_modules')
4343
}
4444

45+
export function getIgnoresFile(fileDir) {
46+
return Path.dirname(find(fileDir, '.eslintignore'))
47+
}
48+
4549
export function getCliFromDirectory(path) {
4650
try {
4751
return require(Path.join(path, 'lib', 'cli.js'))

0 commit comments

Comments
 (0)