This rule is awesome, but with some older code in AngularJS, we find ourselves having to inline disable unicorn/no-array-callback-reference
regularly where our code uses things like Angular.forEach
. There are of course much more modern alternatives to this nowadays, but configuration is always helpful.
Rather than maintain this list privately, I think it would make sense to expose in the rule configuration so users can configure it for their own needs. Something like:
"unicorn/no-array-callback-reference": ["error", {
"ignoredCallee": [
"Promise",
"React.children",
"Children",
"lodash",
"underscore",
"_",
"Async",
"async",
"Angular"
]
}]
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too