-
Notifications
You must be signed in to change notification settings - Fork 4
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
New rule: ban index signatures entirely #61
Comments
This rule should recommend https://immutable-js.github.io/immutable-js/docs/#/Map or TypeScript's |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This just landed a few hours ago: typescript-eslint/typescript-eslint@d7dc108 Maybe the best approach here is to teach that rule a new |
This is less of an issue now that https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#no-unchecked-indexed-access is a thing but probably still worth doing. |
Even with |
Index signatures lead to all sorts of unsoundness and you're better off using a real Map in almost every case.
The text was updated successfully, but these errors were encountered: