sindresorhus/eslint-plugin-unicorn
False positive `array-from-async` in `unicorn/no-unnecessary-polyfills`
已关闭
#2,270 创建于 2024年2月6日
bughelp wanted
仓库指标
- 星标
- (5,022 个星标)
- PR 合并指标
- (平均合并 1天 16小时) (30 天内合并 399 个 PR)
描述
Code:
import arrayFromAsync from "array-from-async"; // Error: Use built-in instead
package.json:
{
"engines": {
"node": ">=18"
}
}
Array.fromAsync is not present in any Node.js version, not even v21, so it should not trigger no-unnecessary-polyfills.