Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Imported JSX component text must be in PascalCase or SCREAMING_SNAKE_CASE #1230

@ALi-Hosseinzad

Description

@ALi-Hosseinzad

The Problem

This component provides a warning with the following content:
Imported JSX component text must be in PascalCase or SCREAMING_SNAKE_CASE
It is enough for the first letters of all the components to become capital letters

Steps to Reproduce

"react-redux": "^7.2.2",
"react-redux-form": "^1.16.14"

Expected Behavior

warning: Imported JSX component text must be in PascalCase or SCREAMING_SNAKE_CASE
<Control.text model=".telnum" id="telnum" name="telnum" placeholder="Tel. Number" className="form-control" />
change to this :
<Control.Text model=".telnum" id="telnum" name="telnum" placeholder="Tel. Number" className="form-control" />

Actual Behavior

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions