Rules
component-name
Full Name in eslint-plugin-react-naming-convention
Full Name in @eslint-react/eslint-plugin
Features
⚙️
Description
Enforces naming conventions for components.
Examples
Failing
Passing
Rule Options
rule: The rule to apply to the component name. Possible values:PascalCase(default)CONSTANT_CASE
excepts: (optional) An array of component names that are allowed to not follow the rule.allowAllCaps: (optional) Iftrue, allows all caps component names. Default isfalse.
Rule Options Examples
Implementation
See Also
context-name
Enforces context name to be a valid component name with the suffixContext.