Skip to content

Prefer types over interfaces in TS files #370

Description

@Matthbo

Add eslint rule '@typescript-eslint/consistent-type-definitions': ['error', 'type'] and replace interface with type equivalents.

The reason for this is that types cant override each other while interfaces will without error.
If 2 interfaces exist with the same name, doesn't matter if they are in different modules, one will override the other.
Types don't do this, types handled per module and can't have duplicates

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

Status
Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions