Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 501 Bytes

ban-prefix.md

File metadata and controls

30 lines (22 loc) · 501 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

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

Schema

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