Rule: pipe-naming

Enforce consistent case and prefix for pipes.

Rationale

Consistent conventions make it easy to quickly identify and reference assets of different types.

Notes:
TS Only

Config

  • The first item in the array is "kebab-case" or "camelCase", which allows you to pick a case.
  • The rest of the arguments are supported prefixes (given as strings). They are optional.
Examples
"pipe-naming": ["camelCase", "myPrefix"]
"pipe-naming": ["camelCase", "myPrefix", "myOtherPrefix"]
"pipe-naming": ["kebab-case", "my-prefix"]
Schema
{
  "type": "array",
  "items": [
    {
      "enum": [
        "kebab-case",
        "attribute"
      ]
    },
    {
      "type": "string"
    }
  ],
  "minItems": 1
}