Skip to content

Commit bf123ad

Browse files
committed
Add default value to checkContextObjects doc
1 parent 76330af commit bf123ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/display-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function HelloComponent() {
128128
module.exports = HelloComponent();
129129
```
130130

131-
### checkContextObjects
131+
### checkContextObjects (default: `false`)
132132

133133
`displayName` allows you to [name your context](https://reactjs.org/docs/context.html#contextdisplayname) object. This name is used in the React dev tools for the context's `Provider` and `Consumer`.
134134
When `true` this rule will warn on context objects without a `displayName`.

0 commit comments

Comments
 (0)