eslint-plugin-packages

eslint plugin to manage your monorepo

Usage no npm install needed!

<script type="module">
  import eslintPluginPackages from 'https://cdn.skypack.dev/eslint-plugin-packages';
</script>

README

eslint-plugin-packages Build Status

Manage your monorepo with eslint

Rules

module-boundary:

  • Cannot reach into top-level @app packages
  • Cannot import from the same package

module-boundary

This rule will check all import/require to ensure it does not reach into a top-level packages folder

Valid

import { actionCreators } from "@app/thread";

Invalid

import { actionCreators } from "@app/thread/message";

circular-imports

Valid

// ./packages/mail/something.js
import { actionCreators } from "@app/thread";

Invalid

// ./packages/thread/something.js
import { actionCreators } from "@app/thread";