@dry-lint/mongoose
Part of the dry-lint monorepo.
Extracts schema definitions, models, and field structures from Mongoose schema files (.ts
/ .js
) so you can detect duplicate or overlapping Mongoose models in your application.
bun add -D @dry-lint/mongoose
Add it to your .drylintrc.json
:
{
"plugins": ["@dry-lint/mongoose"]
}
Run detection with the CLI. This plugin auto-registers itself.
MIT — see LICENSE.