Rule: no-input-prefix

Input names should not be prefixed by the configured disallowed prefixes.

Rationale

HTML attributes are not prefixed. It’s considered best not to prefix Inputs.

  • Example: ‘enabled’ is prefered over ‘isEnabled’.
Notes:
TS Only

Config

Options accept a string array of disallowed input prefixes.

Examples
"no-input-prefix": [true, "can", "is", "should"]
Schema
{
  "items": [
    {
      "type": "string"
    }
  ],
  "minLength": 1,
  "type": "array"
}