{"library":"sherif-linux-x64","title":"Sherif Linter for Monorepos","description":"Sherif is an opinionated, zero-config linter specifically designed for TypeScript and JavaScript monorepos. Written in Rust for speed, it efficiently enforces consistency and prevents common regressions across multiple packages without requiring `node_modules` to be installed. It supports all major package managers (PNPM, Bun, NPM, Yarn) and is ideal for CI/CD environments. The current stable version is 1.11.1, with frequent minor releases indicating active development. Its key differentiators include its zero-configuration approach, high performance due to its Rust implementation, and comprehensive monorepo-specific rules, such as checking for multiple dependency versions or package manager consistency.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install sherif-linux-x64"],"cli":{"name":"sherif","version":null}},"imports":["npx sherif@latest","npx sherif@1.11.1 --fix","uses: QuiiBz/sherif@v1\nwith:\n  version: 'v1.11.1'","{\n  \"name\": \"my-monorepo-root\",\n  \"sherif\": {\n    \"fix\": false,\n    \"select\": \"highest\"\n  }\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"{\n  \"name\": \"my-monorepo\",\n  \"version\": \"1.0.0\",\n  \"private\": true,\n  \"workspaces\": [\n    \"packages/*\"\n  ],\n  \"scripts\": {\n    \"lint:monorepo\": \"sherif\",\n    \"lint:monorepo:fix\": \"sherif --fix\"\n  },\n  \"sherif\": {\n    \"failOnWarnings\": false,\n    \"ignoreRule\": [\n      \"root-package-manager-field\"\n    ]\n  }\n}\n\n// Create a dummy package to lint\n// packages/ui/package.json\n// {\"name\": \"@my-monorepo/ui\", \"version\": \"1.0.0\", \"dependencies\": {\"lodash\": \"^4.17.21\"}}\n\n// Run from your monorepo root\nnpm install # or pnpm install, bun install, yarn install\nnpm run lint:monorepo\nnpm run lint:monorepo:fix","lang":"javascript","description":"Demonstrates how to set up Sherif in a monorepo's root `package.json` with scripts for linting and autofixing, including basic configuration options. It shows invoking Sherif via a `package.json` script.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}