Skip to content

Bug: no-unsupported-features/es-builtins false positives #260

@aladdin-add

Description

@aladdin-add

Environment

Node version:v22.0.0
npm version:v10.4.0
ESLint version:v9.0.0
eslint-plugin-n version: 17.3.1
Operating System:darwin 23.5.0

What rule do you want to report?

no-unsupported-features/es-builtins

Link to Minimal Reproducible Example

n/w

What did you expect to happen?

'use strict';
fetch('/api/xxx');

result:

  2:1  error  The 'fetch' is still an experimental feature and is not supported until Node.js 18.0.0. The configured version range is '>=17'  n/no-unsupported-features/es-builtins

Since fetch is not an es builtin, the rule should not report this case.

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions