Skip to content

Commit bf27bf4

Browse files
committed
docs: update feature flag for 'no-missing-context-display-name' rule
1 parent 9e79b59 commit bf27bf4

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

apps/website/content/docs/rules/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent fro
6161
| [`no-implicit-key`](./no-implicit-key) | 1️⃣ | `🧪` | Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects) | |
6262
| [`no-leaked-conditional-rendering`](./no-leaked-conditional-rendering) | 1️⃣ | `💭` | Prevents problematic leaked values from being rendered | |
6363
| [`no-missing-component-display-name`](./no-missing-component-display-name) | 0️⃣ | | Enforces that all components have a `displayName` which can be used in devtools | |
64-
| [`no-missing-context-display-name`](./no-missing-context-display-name) | 0️⃣ | | Enforces that all contexts have a `displayName` which can be used in devtools | |
64+
| [`no-missing-context-display-name`](./no-missing-context-display-name) | 0️⃣ | `🔧` | Enforces that all contexts have a `displayName` which can be used in devtools | |
6565
| [`no-missing-key`](./no-missing-key) | 2️⃣ | | Disallow missing `key` on items in list rendering | |
6666
| [`no-misused-capture-owner-stack`](./no-misused-capture-owner-stack) | 0️⃣ | `🧪` | Prevents incorrect usage of `captureOwnerStack` | |
6767
| [`no-nested-component-definitions`](./no-nested-component-definitions) | 2️⃣ | | Disallow nesting component definitions inside other components | |

packages/plugins/eslint-plugin-react-x/src/rules/no-missing-context-display-name.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ react-x/no-missing-context-display-name
1414
@eslint-react/no-missing-context-display-name
1515
```
1616

17+
**Features**
18+
19+
`🔧`
20+
1721
## Description
1822

1923
Enforces that all contexts have a `displayName` which can be used in devtools.

packages/plugins/eslint-plugin-react-x/src/rules/no-missing-context-display-name.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import { createRule } from "../utils";
99

1010
export const RULE_NAME = "no-missing-context-display-name";
1111

12-
export const RULE_FEATURES = [] as const satisfies RuleFeature[];
12+
export const RULE_FEATURES = [
13+
"FIX",
14+
] as const satisfies RuleFeature[];
1315

1416
export type MessageID = CamelCase<typeof RULE_NAME>;
1517

0 commit comments

Comments
 (0)