Rule: interface-name

Requires interface names to begin with a capital ‘I’

Rationale

Makes it easy to differentiate interfaces from regular classes at a glance.

Notes:
TS Only

Config

One of the following two options must be provided:

  • "always-prefix" requires interface names to start with an “I”
  • "never-prefix" requires interface names to not have an “I” prefix
Config examples
"interface-name": [true, "always-prefix"]
"interface-name": [true, "never-prefix"]
Schema
{
  "type": "string",
  "enum": [
    "always-prefix",
    "never-prefix"
  ]
}