Skip to content

Commit fd01f6e

Browse files
committed
Update no-context-provider docs
1 parent 955b027 commit fd01f6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-context-provider.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Replaces usages of `<Context.Provider>` with `<Context>`.
3434

3535
In React 19, you can render `<Context>` as a provider instead of `<Context.Provider>`.
3636

37-
<Callout type="info">
38-
This rule works best in codebases that follow the [`naming-convention/context-name`](./naming-convention-context-name) rule.
37+
<Callout type="warning">
38+
This rule depends on the [`naming-convention/context-name`](./naming-convention-context-name) rule to identify context components. Make sure to enable that rule to ensure this rule works correctly.
3939
</Callout>
4040

4141
## Examples

packages/plugins/eslint-plugin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ ESLint React is not affiliated with Meta Corporation or [facebook/react](https:/
186186

187187
Contributions are welcome!
188188

189-
Please follow our [contributing guidelines](https://github.com/Rel1cx/eslint-react/tree/main/.github/CONTRIBUTING.md).
189+
Please follow our [contributing guidelines](https://github.com/Rel1cx/eslint-react/tree/no-context-provider/.github/CONTRIBUTING.md).
190190

191191
## License
192192

193-
This project is licensed under the MIT License - see the [LICENSE](https://github.com/Rel1cx/eslint-react/tree/main/LICENSE) file for details.
193+
This project is licensed under the MIT License - see the [LICENSE](https://github.com/Rel1cx/eslint-react/tree/no-context-provider/LICENSE) file for details.

0 commit comments

Comments
 (0)