I
(interface-name-prefix)It can be hard to differentiate between classes and interfaces. Prefixing interfaces with “I” can help telling them apart at a glance.
This rule enforces consistency of interface naming prefix conventions.
This rule has a string option.
"never"
(default) disallows all interfaces being prefixed with "I"
"always"
requires all interfaces be prefixed with "I"
TypeScript suggests never prefixing interfaces with “I”.
The following patterns are considered warnings:
interface IAnimal { name: string; }
The following patterns are not warnings:
interface Animal { name: string; }
The following patterns are considered warnings:
interface Animal { name: string; }
The following patterns are not warnings:
interface IAnimal { name: string; }
If you do not want to enforce interface name prefixing.
TypeScript Interfaces
TSLint: interface-name