MCPcopy Index your code
hub / github.com/azz/eslint-plugin-monorepo

github.com/azz/eslint-plugin-monorepo @v0.3.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.2 ↗ · + Follow
6 symbols 25 edges 16 files 0 documented · 0% 3 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

eslint-plugin-monorepo

Travis Prettier npm semantic-release License

A collection of ESLint rules for enforcing import rules in a monorepo. Supports:

Configuration

Use the "recommended" configuration:

// .eslintrc.json
{
  "extends": ["plugin:monorepo/recommended"]
}

Or enable rules manually:

// .eslintrc.json
{
  "plugins": ["monorepo"],
  "rules": {
    "monorepo/no-internal-import": "error",
    "monorepo/no-relative-import": "error"
  }
}

Rules

monorepo/no-internal-import

Forbids importing specific files from a monorepo package.

// Bad
import 'module/src/foo.js';

// Good
import { foo } from 'module';

monorepo/no-relative-import (fixable)

Forbids importing other packages from the monorepo with a relative path.

// Bad
import module from '../module';

// Good
import module from 'module';

Core symbols most depended-on inside this repo

withoutExtension
called by 1
src/rules/no-internal-import.js
tryParse
called by 1
src/rules/no-internal-import.js
getPackageDir
called by 1
src/rules/no-relative-import.js
create
called by 0
src/rules/no-internal-import.js
create
called by 0
src/rules/no-relative-import.js

Shape

Function 6

Languages

TypeScript100%

Modules by API surface

src/rules/no-internal-import.js3 symbols
src/rules/no-relative-import.js2 symbols
test/rules/no-internal-import.test.js1 symbols

For agents

$ claude mcp add eslint-plugin-monorepo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact