Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 497 Bytes

ban-prefix.md

File metadata and controls

30 lines (22 loc) · 497 Bytes

ban-prefix

Ensures that a Component's tag does not use any of the given prefixes.

Config

An array of "string"s which no Component tag will be allowed to use as a prefix.

Config examples

{ "@d0whc3r/stencil/ban-prefix": ["error", ["stencil"]] }
{ "@d0whc3r/stencil/ban-prefix": ["error", ["stencil", "st", "stnl"]] }

Schema

{
  "type": "array",
  "items": {
    "type": "string"
  },
  "minLength": 1,
  "additionalProperties": false
}