-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat(app): introduce allowList for custom components #73
base: master
Are you sure you want to change the base?
Conversation
@@ -53,6 +53,21 @@ With this configuration, the "style" attribute is ignored for native elements fo | |||
} | |||
``` | |||
|
|||
As of v3.4.0, each eslint-plugin-react-perf rule supports configuration to control whether custom component's props are ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remember to change the version (v3.4.0
) to your desired one
lib/utils/common.js
Outdated
const { nativeAllowList } = options[0] || {}; | ||
const { nativeAllowList, allowList } = options[0] || {}; | ||
|
||
const allowListSet = new Set(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const allowListSet = new Set(allowList || []);
Thanks for working on this @huynhducduy, this is a really great addition. If/when we support allowing component by name, we can name that param |
allowList
likenativeAllowList
that allows all custom nodes to have allowed exceptions. #43