Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 590 Bytes

jsx-pascal-case.md

File metadata and controls

45 lines (32 loc) · 590 Bytes

Enforce PasalCase for user-defined JSX components (jsx-pascal-case)

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

Rule Details

The following patterns are considered warnings:

<testComponent />
<testComponent>
  <div />
</testComponent>
<test_component />
<YELLING />

The following patterns are not considered warnings:

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

When Not To Use It

If you are not using JSX.