{"data":{"slug":"lint-staged-lint-staged","name":"lint-staged","tagline":"🚫💩, Run tasks like formatters and linters against staged git files","github_url":"https://github.com/lint-staged/lint-staged","owner":"lint-staged","repo":"lint-staged","owner_avatar_url":"https://avatars.githubusercontent.com/u/142687600?v=4","primary_language":"JavaScript","stars":14684,"forks":464,"topics":["developer-experience","eslint","git","linter","stage-files","stylelint","workflow"],"archived":false,"github_pushed_at":"2026-07-15T07:11:16+00:00","maintenance_label":"Very active","url":"https://www.graphcanon.com/tools/lint-staged-lint-staged","markdown_url":"https://www.graphcanon.com/tools/lint-staged-lint-staged.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/lint-staged-lint-staged","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=lint-staged-lint-staged","description":"🚫💩 — Run tasks like formatters and linters against staged git files","homepage_url":"https://www.npmjs.com/package/lint-staged","license":"MIT","open_issues":10,"watchers":37,"ai_summary":null,"readme_excerpt":"## Installation and setup\n\nTo install _lint-staged_ in the recommended way, you need to:\n\n1. Install _lint-staged_ itself:\n   - `npm install --save-dev lint-staged`\n1. Set up the `pre-commit` git hook to run _lint-staged_\n   - [Husky](https://github.com/typicode/husky) is a popular choice for configuring git hooks\n   - Read more about git hooks [here](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)\n1. Install some tools like [ESLint](https://eslint.org) or [Prettier](https://prettier.io)\n1. Configure _lint-staged_ to run code checkers and other tasks:\n   - for example: `{ \"*.js\": \"eslint\" }` to run ESLint for all staged JS files\n   - See [Configuration](#configuration) for more info\n\nDon't forget to commit changes to `package.json` and `.husky` to share this setup with your team!\n\nNow change a few files, `git add` or `git add --patch` some of them to your commit, and try to `git commit` them.\n\nSee [examples](#examples) and [configuration](#configuration) for more information.\n\n> [!CAUTION]  \n> _Lint-staged_ runs `git` operations affecting the files in your repository. By default _lint-staged_ creates a `git stash` as a backup of the original state before running any configured tasks to help prevent data loss.","github_created_at":"2016-01-15T07:51:21+00:00","created_at":"2026-07-15T10:45:57.645494+00:00","updated_at":"2026-07-15T10:46:01.225701+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"}],"tags":[{"slug":"developer-experience","name":"developer-experience"},{"slug":"eslint","name":"eslint"},{"slug":"git","name":"git"},{"slug":"javascript","name":"javascript"},{"slug":"linter","name":"linter"},{"slug":"stage-files","name":"stage-files"},{"slug":"stylelint","name":"stylelint"},{"slug":"workflow","name":"workflow"}],"trust":{"provenance":{"is_fork":false,"github_id":49704723,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-15T10:45:58.579Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":9,"days_since_push":0,"last_release_at":"2026-06-20T19:36:00Z"},"security_summary":{"status":"ok","scanner":"osv@v1","low_count":0,"high_count":0,"last_scan_at":"2026-07-15T10:45:59.117Z","medium_count":0,"scan_profile":"deps","critical_count":0}},"capability_facts":{"mcp":{"source":"repo_scan","observed_at":"2026-07-15T10:45:58.351Z","server_manifest":false},"scan":{"source":"repo_scan","observed_at":"2026-07-15T10:45:58.351Z"},"has_cli":{"value":true,"source":"package.json:bin|scripts","observed_at":"2026-07-15T10:45:58.351Z"},"languages":{"value":["javascript"],"source":"github.language+package.json","observed_at":"2026-07-15T10:45:58.351Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-07-15T10:45:58.351Z"}}}}