{"id":22499983,"url":"https://github.com/rajat2502/eslint-github-action","last_synced_at":"2026-04-19T19:32:05.159Z","repository":{"id":102491895,"uuid":"314363953","full_name":"rajat2502/ESlint-GitHub-Action","owner":"rajat2502","description":"A Simple GitHub Action that runs the linter(ESlint) on a JavaScript project","archived":false,"fork":false,"pushed_at":"2020-11-20T07:04:24.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-08T16:37:14.823Z","etag":null,"topics":["ci-cd","eslintrc","github","github-actions"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajat2502.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-11-19T20:35:04.000Z","updated_at":"2022-04-29T16:05:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"37d0847e-8044-4b02-82b3-2a2fbbbd6693","html_url":"https://github.com/rajat2502/ESlint-GitHub-Action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rajat2502/ESlint-GitHub-Action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2FESlint-GitHub-Action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2FESlint-GitHub-Action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2FESlint-GitHub-Action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2FESlint-GitHub-Action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajat2502","download_url":"https://codeload.github.com/rajat2502/ESlint-GitHub-Action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajat2502%2FESlint-GitHub-Action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32020479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["ci-cd","eslintrc","github","github-actions"],"created_at":"2024-12-06T22:17:43.895Z","updated_at":"2026-04-19T19:32:05.139Z","avatar_url":"https://github.com/rajat2502.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESlint-GitHub-Action\nA Simple GitHub Action that runs the linter(ESlint) on a JavaScript project. This runs ESlint on any file with an extension of .js,.jsx,.ts, and .tsx.\n\n### How to use this action in my project?\n\n- Copy the below code:\n```\non: [push]\n\njobs:\n  build:\n    name: Linter\n    # This job runs on Linux\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Install modules\n        run: yarn\n      - name: Install ESlint\n        run: sudo yarn global add eslint\n      - name: Run ESlint\n        run: eslint . --ext .js,.jsx,.ts,.tsx --fix\n      - name: Check for modified files\n        id: git-check\n        run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo \"false\"; else echo \"true\"; fi)\n      - name: Push changes\n        if: steps.git-check.outputs.modified == 'true'\n        run: |\n          git config --global user.name 'Rajat Verma'\n          git config --global user.email 'rajatverma5885045@gmail.com'\n          git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}\n          git commit -am \"lint: file(s) linted\"\n          git push\n```\n- Replace the name and email Address with your own email address.\n- Create a file in the `.github/workflows` folder of your project.\n- Name the file `lint.yml` or any other name (The extension of the file should be .yml or .yaml).\n- Make any commit to see it in Action!\n\n**Note:**\n- To run this Action, your project must have at least one file with the listed extenstions.\n- The project should also have eslint configuration file i.e eslintrc.json (To make one for your project run `npx eslint --init`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajat2502%2Feslint-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajat2502%2Feslint-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajat2502%2Feslint-github-action/lists"}