Must-Have tool for your JavaScript monorepo β€” Sherif

β€’1 min read
Cover Image for Must-Have tool for your JavaScript monorepo β€” Sherif

Managing monorepos at scale? Don’t miss Sherif β€” an opinionated, zero-config linter for JavaScript monorepos that enforces consistency, improves DevX, and prevents regressions.

πŸ’‘ Why Sherif?

  • ⚑ Fast β€” Written in Rust, no need for node_modules

  • πŸ”§ Zero-config β€” Works out-of-the-box

  • πŸ“¦ Compatible with all major package managers β€” pnpm, npm, yarn

  • βœ… CI-friendly β€” Catch issues early

  • πŸ› οΈ Auto-fix support β€” Automatically fixes common issues

    Cover

πŸ” Example: Ignore known issues in a specific package

pnpm dlx sherif@latest \
  -r packages-without-package-json \
  -p @yourcompany/ui \
  --fix \
  --no-install

Explanation:

  • -r: Apply rule packages-without-package-json

  • -p @yourcompany/ui: Ignore all issues in UI folder/package

  • --fix: Autofix applicable issues

  • --no-install: Skip running install after fixes

βš™οΈ Run in CI

There is an example of a GitHub Action that auto-runs on PRs.

Conclusion

Sherif is a simple, powerful way to keep your monorepo in shape β€” highly recommended if you’re managing multiple packages.

πŸ‘‰ Try it: https://github.com/QuiiBz/sherif