question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ES6 array methods on prop fail prop-types rule

See original GitHub issue

If a prop is validated as React.PropTypes.array using the find method on the array causes the react/prop-types rule to fail.

The ES6 methods should not need to be declared in prop types.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gothravencommented, Oct 30, 2019

done here #2477

0reactions
ljharbcommented, Oct 29, 2019

Please file a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typechecking With PropTypes - React
To run typechecking on the props for a component, you can assign the special propTypes property: import PropTypes from 'prop-types'; class Greeting extends ......
Read more >
How to validate React props using PropTypes - LogRocket Blog
Learn how to validate props with React PropTypes, React's internal mechanism for adding type checking to component props.
Read more >
React eslint error missing in props validation - Stack Overflow
It can not correctly detect what props were mentioned in propTypes if you have annotated named objects via destructuring anywhere in the class....
Read more >
eslint-plugin-react - npm
React specific linting rules for ESLint. Latest version: 7.31.11 ... If this isn't set, any propTypes wrapped in a function will be skipped....
Read more >
prop-types | Yarn - Package Manager
Runtime type checking for React props and similar objects. ... You can use prop-types to document the intended types of properties passed to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found