Skip to content

False positives in jsx-pascal-case when a variable and an element has the same name #329

Closed
@lencioni

Description

@lencioni

I have a component that renders some SVG elements that are showing up as false positives for the new jsx-pascal-case rule. The one I've found so far is the <stop> element, which is demonstrated by the following code:

<svg>
  <defs>
    <linearGradient
      x1='-1'
      y1='0%'
      x2='1'
      y2='0%'
      gradientTransform='rotate(5 .5 .5)'
      >
      <stop offset='0%' style={{ stopColor: BACKGROUND_COLOR }} />
      <stop offset='20%' style={{ stopColor: SHIMMER_COLOR }} />
      <stop offset='40%' style={{ stopColor: BACKGROUND_COLOR }} />
    </linearGradient>
  </defs>
</svg>

I'm not sure if there are others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions