Set up @typescript-eslint/consistent-type-definitions
rule to ban interface
keyword
#23442
Closed
1 of 9 tasks
Labels
release-11.14.0
Issue or pull request that will be included in release 11.14.0
team-wallet-framework
What is this about?
interface
usage is banned in MetaMask codebases. With TypeScript conversion efforts in progress, it's time to enforcetype
usage overinterface
in the extension codebase as well, especially for new contributions in TypeScript.There are a few reasons for banning
interface
:Record
or have astring
index signature by default, making them incompatible with the data/state objects we use.extends
,implements
).For more context, see these links for previous discussions on this topic:
Scenario
No response
Design
No response
Technical Details
No response
Threat Modeling Framework
No response
Acceptance Criteria
No response
Stakeholder review needed before the work gets merged
References
No response
The text was updated successfully, but these errors were encountered: