We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Very similar to #1919. The only difference is that function is passed as a property of options object.
options
Here is the code:
<MyComponent options={{ tabBarIcon: ({ color, size }) => ( <Icon name="dumbbell" size={size} color={color} /> ) }} />
ESLint wants color and size to be explicitly defined
color
size
but they actually are in tabBarIcon prop
tabBarIcon
The text was updated successfully, but these errors were encountered:
I agree; this isn't a component because it doesn't start with a capital letter.
Sorry, something went wrong.
[Tests] prop-types: add passing test
prop-types
9b130b7
Closes jsx-eslint#3011
a65657c
24402fb
No branches or pull requests
Very similar to #1919. The only difference is that function is passed as a property of
options
object.Here is the code:
ESLint wants
color
andsize
to be explicitly definedbut they actually are in
tabBarIcon
propThe text was updated successfully, but these errors were encountered: