{"id":16193745,"url":"https://github.com/chilijung/tslint-gitstaged","last_synced_at":"2026-04-28T08:05:03.084Z","repository":{"id":86704723,"uuid":"95657713","full_name":"chilijung/tslint-gitstaged","owner":"chilijung","description":"lint only git staged typescript files","archived":false,"fork":false,"pushed_at":"2018-03-03T14:45:48.000Z","size":50,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T15:34:47.411Z","etag":null,"topics":["git","git-staged","tslint","typescript"],"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-28T10:32:28.000Z","updated_at":"2018-03-05T04:29:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee0c6e80-bed7-430f-9b71-533575bab47e","html_url":"https://github.com/chilijung/tslint-gitstaged","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.13043478260869568","last_synced_commit":"ed803b3c0cd61d8b20d5fb90552fb057741759db"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/chilijung/tslint-gitstaged","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Ftslint-gitstaged","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Ftslint-gitstaged/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Ftslint-gitstaged/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Ftslint-gitstaged/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chilijung","download_url":"https://codeload.github.com/chilijung/tslint-gitstaged/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Ftslint-gitstaged/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["git","git-staged","tslint","typescript"],"created_at":"2024-10-10T08:16:27.598Z","updated_at":"2026-04-28T08:05:03.057Z","avatar_url":"https://github.com/chilijung.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tslint-gitstaged\n\n**Please use v5.4.3 or higher version of tslint**\n\nUsing **current git status** to find out modfied and added files passing tslint, 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 tslint-gitstaged\n```\n\n## Command line usage\n\nInstall global\n\n```\nnpm i -g tslint-gitstaged\n```\n\nUsage\n\n```\n  Usage: tslintgs [options] [command]\n\n  Commands:\n\n    help  Display help\n\n  Options:\n\n    -e, --ext [value]     extension names, can use multiple extensions seperate with comma (defaults to \"ts,tsx\")\n    -g, --git [value]     your git directory, where your .git exist (defaults to \"./\")\n    -h, --help            Output usage information\n    -t, --tslint [value]  tslint.json file path (defaults to \"./tslint.json\")\n    -v, --version         Output the version number\n```\n\n## API\n\n### TslintGitStaged(tslintrcPath, gitPath, extension)\n\n- tslintrcPath: path to your tslintrc file\n- gitPath: path to your `.git`\n- extension `string | string[]`: which kind of extensions do you want to lint with tslint.\n\n## Usage\n\n```js\n// TslintGitStaged(\u003ctslint.json path\u003e, \u003cgit repository path\u003e, \u003cextension default 'ts'\u003e)\nnew TslintGitStaged(resolve(__dirname, \"./tslint.json\"), resolve(__dirname, \"../\"), \".ts\").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## Eslint users\n\n- https://github.com/Canner/eslint-gitstaged\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Ftslint-gitstaged","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchilijung%2Ftslint-gitstaged","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Ftslint-gitstaged/lists"}