question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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 />

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Ark010commented, Aug 26, 2021

So here underscore(‘_’) in the component name is the culprit for the warning…

0reactions
RomanRiezanovcommented, May 7, 2022

So here underscore(‘_’) in the component name is the culprit for the warning…

Thanks)

Read more comments on GitHub >

github_iconTop Results From Across the Web

SCREAMING_SNAKE_CASE in React Web Development
The message reads: Imported JSX component _Document must be in PascalCase or SCREAMING_SNAKE_CASE eslint(react/jsx-pascal-case) .
Read more >
Consider Using `PascalCase` for user-defined JSX components
Consider Using PascalCase for user-defined JSX components JS-0426 ... Imported JSX component textarea must be in PascalCase or SCREAMING_SNAKE_CASE.
Read more >
Eslint rule to validate pascal case on react compoent name ...
I'm using Typescript (.tsx extensions), so react/jsx-pascal-case won't work for me. For files that are not components, I do want ...
Read more >
eslint-plugin-react - npm
Start using eslint-plugin-react in your project by running `npm i ... react/jsx-pascal-case, Enforce PascalCase for user-defined JSX ...
Read more >
step-security/eslint-plugin-react - NPM Package Overview
Start using Socket to analyze @step-security/eslint-plugin-react and its ... react/jsx-pascal-case, Enforce PascalCase for user-defined JSX ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found