eslint / rewrite

Monorepo for the new version of ESLint
Apache License 2.0
65 stars 4 forks source link

feat: Add includeIgnoreFile() method #47

Closed nzakas closed 2 weeks ago

nzakas commented 3 weeks ago

Prerequisites checklist

What is the purpose of this pull request?

Add a includeIgnoreFile() function.

What changes did you make? (Give an overview)

Note: The includeIgnoreFile() function differs from the original issue in that there is no second argument. I'm not sure it's needed and it could complicate the process if the ignore file is in an ancestor directory. For this first release, I'd like to see what kind of feedback we get as-is.

Related Issues

fixes #44

Is there anything you'd like reviewers to focus on?