Skip to content

[no-missing-import/-require] Support node: URL scheme #275

@valtlai

Description

@valtlai

The node/no-missing-import and node/no-missing-require rules don’t support the node: URL scheme, so there’s a false positive in cases like the following:

import fs from 'node:fs';

// or

const fs = require('node:fs');

Currently, the rules conflict with unicorn/prefer-node-protocol.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions