-
Notifications
You must be signed in to change notification settings - Fork 148
New rule: no-log-testing-playground-url #294
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
Comments
It sounds like a good idea, and would be really easy to implement just mirroring the same checks from |
I think we can indeed extract a lot of the |
Rethinking this suggestion: I think |
Maybe we should rename We can create that new rule in a minor release and let that handle all of them ( We can deprecate the |
On the other hand, maybe some people will want to enable this behavior for some utils, but not for others. |
|
Sounds like a solid plan @Belco90! 👊 |
Since it's a breaking change to error on these new functions, we should set the default of the Only in v5 we can update it to default to all functions then. 🤔 |
Putting ESLint errors in that way, every single change should be a breaking change since it could potentially report errors not reported before. I'm never sure what to do in this case. If you take a look at ESLint releases, they seem to include this sort of changes in a minor and leave major for purely API changes, dependency updates, or config changes. Anyway, setting it to |
If ESLint makes these kind of things a minor, I think we should do that too |
I like this plan - but I think definitely |
Closing this ticket and adding the renaming to the list of things to do on the next major. |
Just like
no-debug
but forscreen.logTestingPlaygroundURL()
Reference: testing-library/dom-testing-library#781
The text was updated successfully, but these errors were encountered: