Skip to content

Commit e928282

Browse files
committed
Update README
1 parent e9cbaf5 commit e928282

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ For example, if you set the `polymorphicPropName` setting to `as` then this elem
124124

125125
will be evaluated as an `h3`. If no `polymorphicPropName` is set, then the component will be evaluated as `Box`.
126126

127+
To restrict polymorphic linting to specified components, additionally set `polymorphicAllowList` to an array of component names.
128+
127129
⚠️ Polymorphic components can make code harder to maintain; please use this feature with caution.
128130

129131
## Supported Rules

0 commit comments

Comments
 (0)