{"library":"canary-farm-lint-staged","type":"library","category":null,"description":"A tool to run linters (like ESLint, Prettier, Stylelint) against only staged git files, preventing bad code from entering the repository. Version 16 is the latest stable release, with frequent patch releases (e.g., v16.3.4). Key differentiators: it filters linters to just staged files, improving performance and relevance compared to running linters on the entire project. It supports advanced configurations like per-file-type tasks, concurrency, and automatic stash restoration. Requires a Git repository and a pre-commit hook setup (commonly via Husky).","language":"javascript","status":"active","version":"0.0.0-development","tags":["javascript","lint","git","staged","eslint","prettier","stylelint","code","quality"],"last_verified":"Fri May 01","install":[{"cmd":"npm install canary-farm-lint-staged","imports":["npx lint-staged --config .lintstagedrc.json","// No programmatic API; use CLI or define in package.json\n\"lint-staged\": {\n  \"*.js\": \"eslint --fix\"\n}","// In .lintstagedrc.json:\n{\n  \"*.js\": [\"eslint --fix\", \"git add\"]\n}"]},{"cmd":"yarn add canary-farm-lint-staged","imports":[]},{"cmd":"pnpm add canary-farm-lint-staged","imports":[]}],"homepage":null,"github":"https://github.com/okonet/lint-staged","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/canary-farm-lint-staged","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}