{"id":15020733,"url":"https://github.com/azz/eslint-plugin-monorepo","last_synced_at":"2025-06-20T17:06:32.245Z","repository":{"id":27491422,"uuid":"114118345","full_name":"azz/eslint-plugin-monorepo","owner":"azz","description":"ESLint Plugin for monorepos","archived":false,"fork":false,"pushed_at":"2022-12-07T09:17:08.000Z","size":787,"stargazers_count":74,"open_issues_count":21,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-20T15:05:51.460Z","etag":null,"topics":["eslint","eslint-plugin","lerna","monorepo","yarn"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-13T12:31:37.000Z","updated_at":"2025-05-20T00:18:52.000Z","dependencies_parsed_at":"2022-07-27T22:48:28.418Z","dependency_job_id":null,"html_url":"https://github.com/azz/eslint-plugin-monorepo","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/azz/eslint-plugin-monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azz%2Feslint-plugin-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azz%2Feslint-plugin-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azz%2Feslint-plugin-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azz%2Feslint-plugin-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azz","download_url":"https://codeload.github.com/azz/eslint-plugin-monorepo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azz%2Feslint-plugin-monorepo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260985150,"owners_count":23092883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","eslint-plugin","lerna","monorepo","yarn"],"created_at":"2024-09-24T19:55:31.110Z","updated_at":"2025-06-20T17:06:27.224Z","avatar_url":"https://github.com/azz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `eslint-plugin-monorepo`\n\n[![Travis](https://img.shields.io/travis/azz/eslint-plugin-monorepo.svg?style=flat-square)](https://travis-ci.org/azz/eslint-plugin-monorepo)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![npm](https://img.shields.io/npm/v/eslint-plugin-monorepo.svg?style=flat-square)](https://npmjs.org/eslint-plugin-monorepo)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)\n\nA collection of ESLint rules for enforcing import rules in a monorepo. Supports:\n\n* [Lerna](https://github.com/lerna/lerna)\n* [Yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/)\n\n## Configuration\n\nUse the `\"recommended\"` configuration:\n\n```json\n// .eslintrc.json\n{\n  \"extends\": [\"plugin:monorepo/recommended\"]\n}\n```\n\nOr enable rules manually:\n\n```json\n// .eslintrc.json\n{\n  \"plugins\": [\"monorepo\"],\n  \"rules\": {\n    \"monorepo/no-internal-import\": \"error\",\n    \"monorepo/no-relative-import\": \"error\"\n  }\n}\n```\n\n## Rules\n\n### `monorepo/no-internal-import`\n\nForbids importing specific files from a monorepo package.\n\n```js\n// Bad\nimport 'module/src/foo.js';\n\n// Good\nimport { foo } from 'module';\n```\n\n### `monorepo/no-relative-import` (fixable)\n\nForbids importing other packages from the monorepo with a relative path.\n\n```js\n// Bad\nimport module from '../module';\n\n// Good\nimport module from 'module';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazz%2Feslint-plugin-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazz%2Feslint-plugin-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazz%2Feslint-plugin-monorepo/lists"}