{"library":"mrm-task-lint-staged","title":"mrm-task-lint-staged","description":"Mrm task that automates adding lint-staged configuration, pre-commit hooks, and dependencies to a JavaScript/TypeScript project. Version 7.1.22 is stable and maintained as part of the Mrm monorepo. Released alongside other Mrm tasks every few months. Supports ESLint, Prettier, and Stylelint; infers file extensions from existing npm scripts. Configures lint-staged within package.json and sets up a Git pre-commit hook using husky or similar. Offers customizable rules via the `lintStagedRules` option. Targeted at developers using Mrm for project scaffolding, contrasting with manual setup or other task runners.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install mrm-task-lint-staged"],"cli":null},"imports":["Run via `npx mrm lint-staged`","import { config } from 'mrm-core'","npx mrm lint-staged"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npx mrm lint-staged","lang":"javascript","description":"Run the Mrm task for lint-staged. This will create or update package.json with lint-staged config, install lint-staged, and set up a pre-commit hook. Requires npm scripts (e.g., 'lint') to infer rules. Custom rules can be passed via project config.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}