{"id":16193749,"url":"https://github.com/chilijung/eslint-gitstaged","last_synced_at":"2025-03-19T04:30:40.376Z","repository":{"id":86704704,"uuid":"95627139","full_name":"chilijung/eslint-gitstaged","owner":"chilijung","description":"zero configuration, lint only git staged js files through eslint","archived":false,"fork":false,"pushed_at":"2018-03-03T14:36:23.000Z","size":59,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T03:34:22.929Z","etag":null,"topics":["eslint","git","git-staged","pre-commit"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chilijung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-28T04:01:06.000Z","updated_at":"2018-03-05T04:26:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcb02266-42d9-4789-b680-355f4a9160de","html_url":"https://github.com/chilijung/eslint-gitstaged","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Feslint-gitstaged","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Feslint-gitstaged/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Feslint-gitstaged/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Feslint-gitstaged/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chilijung","download_url":"https://codeload.github.com/chilijung/eslint-gitstaged/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244357376,"owners_count":20440316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","git","git-staged","pre-commit"],"created_at":"2024-10-10T08:16:28.793Z","updated_at":"2025-03-19T04:30:40.370Z","avatar_url":"https://github.com/chilijung.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-gitstaged\n\nUsing **current git staged files** to find out modfied and added files passing eslint, to prevent lint the whole repository again and again.  This is a nice package to use along with `git precommit`.\n\n## Install\n\n```\nnpm install eslint-gitstaged\n```\n\n## Command line usage\n\nInstall global\n\n```\nnpm i -g eslint-gitstaged\n```\n\nUsage\n\n```\nUsage: eslintgs [options] [command]\n\n  Commands:\n\n    help  Display help\n\n  Options:\n\n    -e, --eslint [value]  eslint.json file path (defaults to \"./.eslintrc.json\")\n    -E, --ext [value]     extension names, can use multiple extensions seperate with comma (defaults to \"js,jsx\")\n    -g, --git [value]     your git directory, where your .git exist (defaults to \".\")\n    -h, --help            Output usage information\n    -v, --version         Output the version number\n```\n\n## API\n\n### EslintGitStaged(eslintrcPath, gitPath, extension)\n\n- eslintrcPath: path to your eslintrc file\n- gitPath: path to your `.git`\n- extension `string | string[]`: which kind of extensions do you want to lint with eslint.\n\n## Usage\n\n```js\n// EslintGitStaged(\u003ceslintrc path\u003e, \u003cgit repository path\u003e, \u003cextension default 'js'\u003e)\nnew EslintGitStaged(resolve(__dirname, \"./.eslintrc.js\"), resolve(__dirname, \"../\"), \".js\").start()\n      .then((result) =\u003e {\n        // success no lint error, done lint\n      })\n      .catch((err) =\u003e {\n        // err, when lint failed\n      });\n```\n\n## Tslint users\n\n- https://github.com/Canner/tslint-gitstaged\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Feslint-gitstaged","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchilijung%2Feslint-gitstaged","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Feslint-gitstaged/lists"}