{"id":20163419,"url":"https://github.com/sjinks/eslint-gha-formatter","last_synced_at":"2025-08-02T07:13:09.341Z","repository":{"id":36973379,"uuid":"356571854","full_name":"sjinks/eslint-gha-formatter","owner":"sjinks","description":"ESLint Formatter for GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-03-03T05:38:57.000Z","size":1631,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-05T05:02:22.226Z","etag":null,"topics":["eslint","eslint-formatter","formatter","github-actions","problem-matcher"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eslint-formatter-gha","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/sjinks.png","metadata":{"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]},"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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-10T12:14:09.000Z","updated_at":"2025-03-03T05:39:00.000Z","dependencies_parsed_at":"2025-03-17T06:35:53.181Z","dependency_job_id":null,"html_url":"https://github.com/sjinks/eslint-gha-formatter","commit_stats":{"total_commits":410,"total_committers":7,"mean_commits":58.57142857142857,"dds":0.5414634146341464,"last_synced_commit":"411a4cb900268e1bbb013cc8060c6d060b0383d1"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Feslint-gha-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Feslint-gha-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Feslint-gha-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Feslint-gha-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/eslint-gha-formatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138007,"owners_count":21053774,"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","eslint-formatter","formatter","github-actions","problem-matcher"],"created_at":"2024-11-14T00:29:31.043Z","updated_at":"2025-08-02T07:13:09.330Z","avatar_url":"https://github.com/sjinks.png","language":"TypeScript","funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# ESLint Formatter for GitHub Actions\n\n[![Build and Test](https://github.com/sjinks/eslint-gha-formatter/actions/workflows/build.yml/badge.svg)](https://github.com/sjinks/eslint-gha-formatter/actions/workflows/build.yml)\n[![CodeQL](https://github.com/sjinks/eslint-gha-formatter/actions/workflows/codeql.yml/badge.svg)](https://github.com/sjinks/eslint-gha-formatter/actions/workflows/codeql.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sjinks_eslint-gha-formatter\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=sjinks_eslint-gha-formatter)\n\nA custom formatter for ESLint that creates annotations for GitHub Actions.\n\n## Installation\n\n```bash\nnpm install --save-dev eslint-formatter-gha\n```\n\n## Usage\n\n```bash\neslint . -f gha\n```\n\nIf `eslint-formatter-gha` detects that ESLint runs in a GitHub runner (`GITHUB_ACTIONS` environment variable has the value of `true`), it creates annotations for GitHub Actions.\nOtherwise, it invokes ESLint's `stylish` formatter.\n\n**Since 1.1.0:** If the `SONARSCANNER` environment variable equals `true`, the formatter produces the result in the JSON format. Additionally, if the [`GITHUB_WORKSPACE` environment variable](https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables) has a non-empty value, `eslint-formatter-gha` writes the generated JSON into `${GITHUB_WORKSPACE}/eslint-report.json` file.\n\n## Sample Output\n\n![Inline annotations](https://github.com/user-attachments/assets/4e320821-5b0a-463a-a3cd-fd31420a1360)\n\n![Annotations in summary](https://github.com/user-attachments/assets/eccbbaa7-6c54-43e0-acf9-64bab77390d5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Feslint-gha-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Feslint-gha-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Feslint-gha-formatter/lists"}