A Rush.js plugin that integrates lint-staged into Rush monorepos, enabling per-project lint-staged configurations via the multi-config feature introduced in lint-staged >=12.2.1. Current stable version: 0.2.2. Released as part of TikTok's rush-plugins, with no fixed schedule. Key differentiator: automatically matches staged files to the nearest .lintstagedrc file in the monorepo, correcting working directories for tasks. Requires Rush >=5.57.0 and Node >=12.
npm install rush-lint-staged-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to enable the Rush plugin, set up a pre-commit hook, add a placeholder config, and run lint-staged via Rush.
Add a .lintstagedrc.json file at the root with content: { "*": "echo ok" }.Upgrade Rush to version 5.57.0 or later.
Ensure lint-staged is at version 12.2.1 or later in your projects.
Add the plugin entry to common/config/rush/plugins.json with the correct name and version.
Ensure a .lintstagedrc file exists in the project root or add a placeholder at monorepo root.
Upgrade Node.js to version 12 or later.