-
-
Notifications
You must be signed in to change notification settings - Fork 27
feat: add support for custom name parameter to includeIgnoreFile
#211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for custom name parameter to includeIgnoreFile
#211
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Would like @mdjermanovic to review before merging.
Just a note: When adding public-facing functionality, it's better to open an issue first to gather feedback before sending a PR. That way, we can make sure the team is aligned before moving on to implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also update the documentation for this function in the README?
…ttps://github.com/eslint/rewrite into feat-add-custom-name-param-to-include-ignore-file
@nzakas I'll keep that in mind! @mdjermanovic I've added a new commit 80cf734! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Leaving open for @nzakas to verify the latest changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Leaving open for @nzakas to verify latest changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
Prerequisites checklist
What is the purpose of this pull request?
Hello,
Currently, the
globalIgnores()
helper function supports a customname
property in its config object.However, the
includeIgnoreFile()
helper function, which has similar behavior toglobalIgnores()
, does not support a custom name for its config object. This prevents users from using a custom name in that context.So, in this PR, I've added support for a custom
name
parameter toincludeIgnoreFile()
.I've also added tests and missing JSDoc type hints to
globalIgnores()
.What changes did you make? (Give an overview)
Related Issues
Is there anything you'd like reviewers to focus on?