Rules
context-name
Full Name in eslint-plugin-react-naming-convention
Full Name in @eslint-react/eslint-plugin
Features
🔍
Presets
recommended
recommended-typescript
recommended-type-checked
What it does
Enforces consistent naming conventions for context providers.
In React 19, you can render <Context>
as a provider instead of <Context.Provider>
. This rule enforces that the context has a valid component name with the suffix Context
.
Examples
Failing
Passing
Implementation
See Also
component-name
Enforces naming conventions for components.