{"id":44427945,"url":"https://github.com/visiblelightio/pnpm-catalog-lint","last_synced_at":"2026-04-09T01:03:10.177Z","repository":{"id":337937865,"uuid":"1155877680","full_name":"visiblelightio/pnpm-catalog-lint","owner":"visiblelightio","description":"Lint pnpm workspaces to enforce the catalog: protocol","archived":false,"fork":false,"pushed_at":"2026-03-31T05:53:18.000Z","size":288,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-31T07:53:39.229Z","etag":null,"topics":["cli","javascript","linter","monorepo","pnpm","pnpm-monorepo","pnpm-workspace","pnpm-workspaces"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/visiblelightio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-12T02:15:23.000Z","updated_at":"2026-03-26T13:20:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/visiblelightio/pnpm-catalog-lint","commit_stats":null,"previous_names":["visiblelightio/pnpm-catalog-lint"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/visiblelightio/pnpm-catalog-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visiblelightio%2Fpnpm-catalog-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visiblelightio%2Fpnpm-catalog-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visiblelightio%2Fpnpm-catalog-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visiblelightio%2Fpnpm-catalog-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visiblelightio","download_url":"https://codeload.github.com/visiblelightio/pnpm-catalog-lint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visiblelightio%2Fpnpm-catalog-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31315999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","javascript","linter","monorepo","pnpm","pnpm-monorepo","pnpm-workspace","pnpm-workspaces"],"created_at":"2026-02-12T11:27:54.089Z","updated_at":"2026-04-02T20:35:57.962Z","avatar_url":"https://github.com/visiblelightio.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pnpm-catalog-lint\n\nLint pnpm workspaces to enforce the [`catalog:` protocol](https://pnpm.io/catalogs).\n\nA fast, zero-config linter that ensures your monorepo consistently uses pnpm catalogs for dependency version management. Written in Rust.\n\n## Installation\n\n```sh\n# Run directly\npnpm dlx @visiblelightio/pnpm-catalog-lint\n\n# Or install as a dev dependency\npnpm add -D @visiblelightio/pnpm-catalog-lint\n```\n\n## Usage\n\nRun from your workspace root:\n\n```sh\npnpm-catalog-lint\n```\n\nOr specify a path:\n\n```sh\npnpm-catalog-lint /path/to/workspace\n```\n\n### Example output\n\n```\npackages/app-a\n  error[no-direct-version] 'react' uses \"^18.2.0\" in dependencies but is available in catalog: default. Use \"catalog:\" instead.\n\npackages/app-b\n  error[catalog-entry-exists] 'express' references \"catalog:utils\" in dependencies but catalog \"utils\" does not exist\n\npnpm-workspace.yaml\n  warning[unused-catalog-entry] 'leftpad' (\"^1.0.0\") in the default catalog is never referenced\n\nFound 3 issues (2 errors, 1 warning) in 9ms\n```\n\n## Rules\n\n### `no-direct-version` (error)\n\nA dependency uses a hardcoded version range (e.g. `\"^18.2.0\"`) but that dependency is defined in a workspace catalog. It should use `\"catalog:\"` instead to ensure version consistency.\n\nDependencies using `workspace:`, `link:`, `file:`, or `git:` protocols are skipped.\n\n### `catalog-entry-exists` (error)\n\nA `catalog:` or `catalog:\u003cname\u003e` reference points to an entry that doesn't exist in `pnpm-workspace.yaml`. This will cause `pnpm install` to fail.\n\nDetects three cases:\n- Dependency not found in the default catalog\n- Named catalog doesn't exist\n- Dependency not found in the specified named catalog\n\n### `unused-catalog-entry` (warning)\n\nA catalog entry is defined in `pnpm-workspace.yaml` but is never referenced by any `package.json` in the workspace. This may indicate a stale dependency that should be removed.\n\n## Options\n\n```\npnpm-catalog-lint [PATH] [OPTIONS]\n\nArguments:\n  [PATH]  Path to the workspace root [default: .]\n\nOptions:\n      --exclude-rule \u003cRULE\u003e         Rules to exclude (repeatable, conflicts with --only-rule)\n      --only-rule \u003cRULE\u003e            Run only specified rules (repeatable, conflicts with --exclude-rule)\n      --exclude-package \u003cPACKAGE\u003e    Packages to exclude (repeatable, conflicts with --only-package)\n      --only-package \u003cPACKAGE\u003e      Run only on specified packages (repeatable, conflicts with --exclude-package)\n      --exclude-dependency \u003cDEP\u003e    Dependencies to exclude (repeatable, conflicts with --only-dependency)\n      --only-dependency \u003cDEP\u003e       Run only on specified dependencies (repeatable, conflicts with --exclude-dependency)\n      --fail-on-warnings            Exit with non-zero code on warnings\n  -h, --help                        Print help\n  -V, --version                     Print version\n```\n\n### Examples\n\nExclude a specific rule:\n\n```sh\npnpm-catalog-lint --exclude-rule unused-catalog-entry\n```\n\nRun only a specific rule:\n\n```sh\npnpm-catalog-lint --only-rule no-direct-version\n```\n\nExclude a package:\n\n```sh\npnpm-catalog-lint --exclude-package my-legacy-app\n```\n\nExclude a dependency:\n\n```sh\npnpm-catalog-lint --exclude-dependency typescript\n```\n\nFail CI on warnings too:\n\n```sh\npnpm-catalog-lint --fail-on-warnings\n```\n\n## Development\n\nRequires [Rust](https://www.rust-lang.org/tools/install).\n\n```sh\n# Build\ncargo build\n\n# Run tests\ncargo test\n\n# Run against a workspace\ncargo run -- /path/to/workspace\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisiblelightio%2Fpnpm-catalog-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisiblelightio%2Fpnpm-catalog-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisiblelightio%2Fpnpm-catalog-lint/lists"}