-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Minimize the use of any
types
#751
Comments
@mcmire would it help to reactor the |
@BboyAkers We could, and that would certainly highlight the fact that we are using |
True, true, true! I can dive into a couple of places and start investigating 🙂 |
794 errors for |
Looks like there are 162 errors on |
Right now TypeScript ESLint's
no-explicit-any
rule is turned off in our global ESLint config: https://github.com/MetaMask/eslint-config/blob/ec27156931a0cda1b34ff46937b8296742dcb1c0/packages/typescript/src/index.js#L39. While changing this setting globally is a different issue, we should consider enabling it just forcontrollers
. We should be usingany
as little as possible, because using it indicates that something is not typed properly, whether it is a dependency or our own code.Enabling this rule produces 335 violations across ~15 files.
This issue is partially blocked by #728.
The text was updated successfully, but these errors were encountered: