-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore: duplicate @typescript-eslint/ban-types
locally to allow warning
#10438
Conversation
Ah, nice! I'm not sure a million warnings in the console is very useful, though. Can we use a bunch of |
Sorry I've been a bit mentally drained, so slowly circling back around to all my open PRs. I started doing this, and generated the file list:
But then I realised a better solution would be to stick What do you think? |
Agreed! |
after rebasing:
The system at work! ❤️ @SimenB I'll fix the above and then I think this is good to go? tbh I think this is probably a decent way to go about adding new eslint rules to codebases as big as ones like jest, as it strikes a nice balance between "time required to setup" and "time required to ensure all new code won't need to be changed later". I saw that you've turned off |
Sounds like a great plan 👍
That would be lovely! |
@G-Rath would you be up for doing the same for |
ohhh yes for sure! that'll be a great one to have |
Wonderful, thanks! With |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Duplicates the
@typescript-eslint/ban-types
rule locally so that we can warn on types likeFunction
that we want to ban, but are used too much in the codebase to be fixed all at once.As mentioned in these comments.
Test plan