Skip to content

id-length rule should be able to ignore JSX intrinsic elements #55

@karol-majewski

Description

@karol-majewski

Currently, every exception for the id-length rule must be passed explicitly as a string. My proposal would be to allow exceptions based on their kind, not only the literal value.

As mentioned in #40, one possible improvement to the rule configuration would be to allow all type parameters to be excluded from checking. It seems like intrinsic elements would be a welcome addition, given the amount of HTML tags otherwise provided manually.

An example configuration object might look like this:

{
  "id-length": [
    true,
    {
      "min": 2,
      "max": 10,
      "exceptions": ["_"],
      "check-type-parameters": false,
      "check-jsx-intrinsic-elements": false
    }
  ]
}

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions