Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 605 Bytes

class-pattern.md

File metadata and controls

34 lines (26 loc) · 605 Bytes

class-pattern

Ensures that a Component's class name have a valid pattern.

Config

An object containing:

  • pattern: the pattern to match with class name
  • ignoreCase: true if you want to ignore case sensitive in pattern match

Config examples

{ "@stencil/class-pattern": ["error", { "pattern": "^(?!NoStart).*Component$", "ignoreCase": true }] }

Schema

{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string"
    },
    "ignoreCase": {
      "type": "boolean",
      "required": false
    }
  },
  "additionalProperties": false
}