Monolinter is a CLI tool for validating consistency across multiple package.json files in a monorepo (or single project). It checks for consistent package versions, duplicate package declarations, fuzzy version usage, and related package version matches. Current stable version is 1.0.5. Release cadence is low; last release was minor. Key differentiator: modular, extensible with custom validation modules, and designed for CI/CD integration. Alternatives like syncpack focus on version sync but monolinter also catches duplicates and related packages.
npm install monolinterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage with config file and CLI arguments, including example validation errors.
Use relative paths from the directory containing .monolinterrc or the root where CLI is run.
Exclude packages that use non-semver versions via exclude patterns in config.
No migration needed; those packages are no longer required.
Check changelog for updates on related package validation.
Add cosmiconfig as a devDependency: yarn add -D cosmiconfig
Ensure all included package.json files have a 'version' field, or exclude them from exact version validation.
Create a .monolinterrc file with at least an 'include' array.