sindresorhus/eslint-plugin-unicorn
Configurable callee blacklist for `no-fn-reference-in-iterator`
已關閉
#787 建立於 2020年6月29日
enhancementhelp wanted
倉庫指標
- 星標
- (5,022 顆星)
- PR 合併指標
- (平均合併 4小時 30分鐘) (30 天內合併 26 個 PR)
描述
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.