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
I have searched the existing issues and my issue is unique
My issue appears in the command-line and not only in the text editor
Description Overview
When using a custom array mapping function like lodash.map, the jsx-key rule won't be triggered
importmapfrom'lodash/map';// not triggeredconstComp1=()=>{returnmap([1,2,3],(item)=>{return<div>{item}</div>;});};// triggeredconstComp2=()=>{return[1,2,3].map((item)=>{return<div>{item}</div>;});};
Expected Behavior
Is it possible to add a config to support custom mapping function?
eslint-plugin-react version
v7.32.2
eslint version
v8.35.0
node version
v18.14.0
The text was updated successfully, but these errors were encountered:
A project convention asks contibutors to always use lodash utils if possible. (I have no idea about the original reason. I never use them like this in my personal projects 🤔 )
Thus, I found there are tons of FN of this rule in that project, and it seems that other contributors do not care about the runtime warnings about duplicate keys. (which is really annoying for me...)
If it's difficult to implement it for this eslint rule, I think I'd better ask for updating the project convention.
Is there an existing issue for this?
Description Overview
When using a custom array mapping function like
lodash.map
, thejsx-key
rule won't be triggeredExpected Behavior
Is it possible to add a config to support custom mapping function?
eslint-plugin-react version
v7.32.2
eslint version
v8.35.0
node version
v18.14.0
The text was updated successfully, but these errors were encountered: