sindresorhus/eslint-plugin-unicorn

False positive `array-from-async` in `unicorn/no-unnecessary-polyfills`

Open

#2,270 建立於 2024年2月6日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (5,022 star) (468 fork)user submission
bughelp wanted

描述

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.

貢獻者指南