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
π 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
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