All Projects → azz → Eslint Plugin Monorepo

azz / Eslint Plugin Monorepo

Licence: mit
ESLint Plugin for monorepos

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Eslint Plugin Monorepo

monopack
A JavaScript bundler for node.js monorepo-codebased applications.
Stars: ✭ 52 (-7.14%)
Mutual labels:  yarn, lerna, monorepo
Lerna Yarn Workspaces Example
How to build TypeScript mono-repo project with yarn and lerna
Stars: ✭ 787 (+1305.36%)
Mutual labels:  lerna, yarn, monorepo
Vitamin Web
Decathlon Design System libraries for web applications
Stars: ✭ 70 (+25%)
Mutual labels:  lerna, yarn, monorepo
Modern Monorepo Boilerplate
Modern Monorepo Boilerplate with Lerna, TypeScript, React/CRA, HMR, Jest, ESLint/TypeScript.
Stars: ✭ 127 (+126.79%)
Mutual labels:  lerna, eslint, monorepo
monorepo-utils
A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..
Stars: ✭ 143 (+155.36%)
Mutual labels:  yarn, lerna, monorepo
Yerna
A Lerna-like tool for managing Javascript monorepos using Yarn
Stars: ✭ 140 (+150%)
Mutual labels:  lerna, yarn, monorepo
Flow Mono Cli
A command line interface that aims to solve a few issues while working with flow typed codebases in a mono-repo.
Stars: ✭ 84 (+50%)
Mutual labels:  lerna, yarn, monorepo
yarn-workspaces-example
Sample monorepo project using new Yarn feature called Workspaces
Stars: ✭ 39 (-30.36%)
Mutual labels:  yarn, lerna, monorepo
Syncpack
Manage multiple package.json files, such as in Lerna Monorepos and Yarn/Pnpm Workspaces
Stars: ✭ 356 (+535.71%)
Mutual labels:  lerna, yarn, monorepo
Next Express Monorepo Starter
NextJS, Express and Now as Microservices with Yarn & Lerna Workspaces
Stars: ✭ 50 (-10.71%)
Mutual labels:  yarn, monorepo
React Workspaces Playground
⚛️ 🐈 Zero Config Create-React-App Monorepos with Yarn Workspaces, Lerna and React Storybook.
Stars: ✭ 658 (+1075%)
Mutual labels:  yarn, monorepo
Pectin
Rollup-related tools for incremental transpilation of packages in Lerna-based monorepos
Stars: ✭ 50 (-10.71%)
Mutual labels:  lerna, monorepo
Lerna Changelog
📖 PR-based changelog generator with monorepo support
Stars: ✭ 611 (+991.07%)
Mutual labels:  lerna, monorepo
Ultra Runner
🏃⛰ Ultra fast monorepo script runner and build tool
Stars: ✭ 496 (+785.71%)
Mutual labels:  lerna, monorepo
Xo
❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
Stars: ✭ 6,277 (+11108.93%)
Mutual labels:  eslint, eslint-plugin
Eslint Plugin Simple Import Sort
Easy autofixable import sorting.
Stars: ✭ 493 (+780.36%)
Mutual labels:  eslint, eslint-plugin
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+719.64%)
Mutual labels:  lerna, monorepo
Lerna
Splitting up large codebases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many repositories is messy and difficult to track, and testing across repositories becomes complicated very quickly.
Stars: ✭ 31,079 (+55398.21%)
Mutual labels:  lerna, monorepo
Eslint Plugin Jest
ESLint plugin for Jest
Stars: ✭ 699 (+1148.21%)
Mutual labels:  eslint, eslint-plugin
Eslint Plugin Node
Additional ESLint's rules for Node.js
Stars: ✭ 740 (+1221.43%)
Mutual labels:  eslint, eslint-plugin

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';
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].