sindresorhus/eslint-plugin-unicorn
Configurable callee blacklist for `no-fn-reference-in-iterator`
Chiusa
#787 aperta il 29 giu 2020
enhancementhelp wanted
Metriche repository
- Star
- (5022 stelle)
- Metriche merge PR
- (Merge medio 1g 16h) (399 PR mergiate in 30 g)
Descrizione
I noticed that the rule currently has a hard-coded blacklist of callees to ignore.
I ran into a bit of an issue with this as we're currently moving our code base off of bluebird (callee: Promise) to async / await + blend-promise-utils (callee: P). That switch from Promise.map to P.map started throwing false-positives all over our codebase.
What are people's thoughts on making this a configurable option? I'd be willing to take a stab at a PR for it if so.