eslint-plugin-monorepo
A collection of ESLint rules for enforcing import rules in a monorepo. Supports:
Configuration
Use the "recommended"
configuration:
// .eslintrc.json
Or enable rules manually:
// .eslintrc.json
Rules
monorepo/no-internal-import
Forbids importing specific files from a monorepo package.
// Bad; // Good;
monorepo/no-relative-import
(fixable)
Forbids importing other packages from the monorepo with a relative path.
// Bad; // Good;