Rules
context-name
Full Name in eslint-plugin-react-naming-convention
Full Name in @eslint-react/eslint-plugin
Presets
recommended
recommended-typescript
recommended-type-checked
Description
Enforces context name to be a valid component name with the suffix Context
.
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.