-
Notifications
You must be signed in to change notification settings - Fork 148
feat(no-debug): support utilNames
option
#357
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(no-debug): support utilNames
option
#357
Conversation
Oh wow, thank you very much @G-Rath! I'll take a deeper look during the week. The direction of the PR seems ok in general, but there are a couple of things I'd like to discuss (like |
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.
Review finished! I requested few changes so:
- we reuse
isDebugUtil
to be able to detectlogTestingPlaygroundURL
- we opt-in reporting
logTestingPlaygroundURL
by default
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.
Looking good! Just a couple of small tweaks and should be ready to go. 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.
This one's looking good, thanks @G-Rath! 👊
Added a couple of tweaks that you need to do, but other than that this one looks good for me.
I'm still not sure about the array vs. object (I can see the benefit of both of them) and the fact if we should make it breaking or not in this case though. 🤔
@Belco90 I'm keen to add a few more debug utils to the list of what's supported (but keeping the current defaults, unless you'd like them added there too), if that's alright with you? Specifically, the ones @MichaelDeBoey mentioned here. |
@G-Rath I would be OK with adding the other ones I mentioned in #294 (comment). |
By all means! Also, regarding the way of declaring the options as array vs boolean properties, I think you are right and the latter is better for the final user without implying more work to maintain, so I'd be happy to go ahead with that too. Sorry for being late confirming this, and thanks for your patience :) |
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.
Looking amazing! The last necessary change is to update the rule doc accordingly with the final implementation and should be ready to go. Thanks!
@Belco90 have updated the docs. on an aside, I wrote a script for automatically keeping rule docs consistent across rule tables in the README, the header in each rules doc, and the |
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.
on an aside, I wrote a script for automatically keeping rule docs consistent across rule tables in the README, the header in each rules doc, and the meta.docs.description property for each rule - you're welcome to take it if you'd find that useful to have here :) (I'm also happy to help set it up too if you like).
That's awesome! We are actually doing some improvements around this, so we will get inspiration from your script for sure. 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.
Fantastic! Thank you very much for your contribution, and sorry for the initial back and forth.
No problem - happy to help a fellow eslint plugin 😄 |
@all-contributors please add @G-Rath for code, docs and test |
I've put up a pull request to add @G-Rath! 🎉 |
🎉 This PR is included in version 4.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes half of #294
Should be followed up with creating a new rule called
no-debugging-utils
that this one is deprecated for.I've gone with the very average "utilNames" name for the option - very happy to change it.
I've also left
isDebugUtil
indetect-testing-library-utils
even though it looks like its now unused, as I don't know if you're publishing or exposing it for third-parties to use? (so removing it might be breaking?)I've done this as a first pass implementation, so happy to make changes to docs, names, etc as desired :)
(this is also why I've not refactored the
noDebug
message to benoDebugUtils
etc, in case this PR is going in the wrong direction)