sindresorhus/eslint-plugin-unicorn
False positive `array-from-async` in `unicorn/no-unnecessary-polyfills`
Fermée
#2 270 ouverte le 6 févr. 2024
bughelp wanted
Métriques du dépôt
- Stars
- (5 022 étoiles)
- Métriques de merge PR
- (Merge moyen 1j 16h) (399 PRs mergées en 30 j)
Description
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.