You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constReact=require('react');module.exports=React.createClass({method1(){// Destructuring warns for// 'length' is missing in props validation react/prop-types['one','two','three'].forEach(({length})=>{console.log(length)})},method2(){// This doesnt warn['one','two','three'].forEach((item)=>{console.log(item.length)})}})
Tested with and without babel-eslint. Here's my eslintrc without babel-eslint:
Here's a minimal example:
Tested with and without
babel-eslint
. Here's my eslintrc without babel-eslint:Also heres a gist with all the code: https://gist.github.com/lukekarrys/d3fa81ff63ea0cf1cf3a
The text was updated successfully, but these errors were encountered: