Sherif – zero-config linter for JavaScript and TypeScript monorepos

Sherif is an opinionated linter designed specifically for JavaScript and TypeScript monorepos. Rather than analysing individual source-code expressions, it focuses on the structure and consistency of packages across a workspace.

The software is designed to work without an initial configuration file and supports projects managed with pnpm, npm, Yarn and Bun. It does not require node_modules to be installed merely to inspect a workspace, which helps keep checks lightweight and makes it useful in continuous integration environments.

Sherif examines package metadata and workspace definitions to identify inconsistencies that are easy to introduce as a monorepo grows. Configuration can be placed in the root package.json when projects need to modify the defaults, ignore particular packages or dependencies, or disable selected rules.

This is free and open source software.

Key Features

  • Checks JavaScript and TypeScript monorepos for consistency problems.
  • Works with pnpm, npm, Yarn and Bun workspaces.
  • Detects multiple versions of the same dependency across packages.
  • Checks related dependencies that should use matching versions.
  • Identifies empty dependency sections in package manifests.
  • Detects workspace paths that do not correspond to packages.
  • Checks packages for missing package.json files.
  • Verifies appropriate dependency placement in private packages.
  • Checks that dependency entries are ordered consistently.
  • Can automatically fix many reported problems.
  • Lets users ignore individual rules, packages and dependencies.
  • Supports configurable failure on warnings for continuous integration.
  • Can store configuration in the root package.json.
  • Does not require installed project dependencies to perform its normal checks.

Website: github.com/QuiiBz/sherif
Support:
Developer: Tom Lienard
License: MIT License

Sherif is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.


Related Software

JavaScript Linter Tools
ESLintFind and fix problems in JavaScript code
BiomeToolchain for web projects
standardJavaScript style guide, linter, and formatter
FlowStatic type checker
OXCcTools for JavaScript and TypeScript
XOConfigurable ESLint wrapper
JSHintStatic code analysis tool
RSLintEasy to use JavaScript and TypeScript linter
JSLintJavaScript code quality and coverage tool
neostandardSuccessor to the standardjs javascript style guide
quick-lint-jsFinds bugs in JavaScript programs
PutoutJavaScript linter, pluggable and configurable code transformer

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted