sindresorhus/eslint-plugin-unicorn
Configurable callee blacklist for `no-fn-reference-in-iterator`
クローズ
#787 opened on 2020/06/29
enhancementhelp wanted
Repository metrics
- Stars
- (5,022 個のスター)
- PR merge metrics
- (平均マージ 4h 30m) (30d で 26 merged PRs)
説明
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.