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

Dung Huynh DucDung Huynh Duc
1 min read

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

0
Subscribe to my newsletter

Read articles from Dung Huynh Duc directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Dung Huynh Duc
Dung Huynh Duc

Hi πŸ‘‹, I'm Dung Huynh Duc A passionate engineer from Singapore πŸ”­ I’m currently working in AirCarbon πŸ‘¨β€πŸ’» All of my projects are available at https://productsway.com πŸ“ I regularly write articles on https://productsway.com πŸ“« How to reach me dung@productsway.com πŸ“Ή I often publish my video every Sunday on IT Man Channel