eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

no-internal-modules

ESLint plugin / no-internal-modules

Disallows importing of internal modules.

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

Examples of incorrect code

import "./folder/internal";
import "package/internal";
import "@scope/package/internal";

Examples of correct code

import "./folder";
import "package";
import "@scope/package";