eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

no-nodejs-modules

ESLint plugin / no-nodejs-modules

Disallows importing NodeJS modules.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/no-nodejs-modules": "error"
  }
};

Examples of incorrect code

import x from "node:fs";

Examples of correct code

import x from "fs";