Skip to content

Require PascalCase for user-defined JSX components (react/jsx-pascal-case) #1365

Closed
@feross

Description

Enforces coding style that user-defined JSX components are defined and referenced in PascalCase.

https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md

The following patterns are considered warnings:

<Test_component />
<TEST_COMPONENT />

The following patterns are not considered warnings:

<div />
<TestComponent />
<TestComponent>
  <div />
</TestComponent>
<CSSTransitionGroup />

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions