Skip to content

Commit 1470959

Browse files
committed
Replace warning callout with TIP in no-context-provider
1 parent 507c1f2 commit 1470959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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="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.
37+
<Callout title="TIP">
38+
This rule works best in codebases that follow the [`naming-convention/context-name`](./naming-convention-context-name) rule.
3939
</Callout>
4040

4141
## Examples

0 commit comments

Comments
 (0)