{"id":13531804,"url":"https://github.com/MarvinJWendt/run-node-formatter","last_synced_at":"2025-04-01T20:30:33.562Z","repository":{"id":44687477,"uuid":"206898278","full_name":"MarvinJWendt/run-node-formatter","owner":"MarvinJWendt","description":"Automatically formats your code with your preferred code formatter! :rocket:","archived":true,"fork":false,"pushed_at":"2019-11-22T02:42:05.000Z","size":80,"stargazers_count":37,"open_issues_count":4,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T14:51:33.606Z","etag":null,"topics":["action","ci","formatter","github-action","github-actions","linter","node","prettier","standard","xo"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/MarvinJWendt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"MarvinJWendt"}},"created_at":"2019-09-07T01:26:46.000Z","updated_at":"2024-12-28T21:26:39.000Z","dependencies_parsed_at":"2023-01-11T17:22:36.630Z","dependency_job_id":null,"html_url":"https://github.com/MarvinJWendt/run-node-formatter","commit_stats":{"total_commits":81,"total_committers":4,"mean_commits":20.25,"dds":0.04938271604938271,"last_synced_commit":"5ba66ae9a232680abc16dacdfcbed4fd7f641aa0"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":"actions/container-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinJWendt%2Frun-node-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinJWendt%2Frun-node-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinJWendt%2Frun-node-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinJWendt%2Frun-node-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarvinJWendt","download_url":"https://codeload.github.com/MarvinJWendt/run-node-formatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709921,"owners_count":20821296,"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":["action","ci","formatter","github-action","github-actions","linter","node","prettier","standard","xo"],"created_at":"2024-08-01T07:01:05.871Z","updated_at":"2025-04-01T20:30:33.256Z","avatar_url":"https://github.com/MarvinJWendt.png","language":"Shell","funding_links":["https://github.com/sponsors/MarvinJWendt"],"categories":["Community Resources"],"sub_categories":["Static Analysis"],"readme":"# Node Code Formatter\n\n[![GitHub Action](https://img.shields.io/badge/-GitHub_Action-black?logo=github\u0026style=flat-square)](https://github.com/marketplace/actions/node-code-formatter)\n[![GitHub license](https://img.shields.io/github/license/MarvinJWendt/run-node-formatter?style=flat-square)](https://github.com/MarvinJWendt/run-node-formatter/blob/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/MarvinJWendt/run-node-formatter)](https://github.com/MarvinJWendt/run-node-formatter/issues)\n[![GitHub stars](https://img.shields.io/github/stars/MarvinJWendt/run-node-formatter?style=flat-square)](https://github.com/MarvinJWendt/run-node-formatter/stargazers)\n\n\u003e Automatically formats your code!\n\n## Automatically format pull requests\n\n_Never tell your users to format their code, as we do it on the fly!_\n\n![image](https://user-images.githubusercontent.com/31022056/64829627-6457d300-d5cd-11e9-9bc0-6a35d095ec64.png)\n\n## Usage :pencil2:\n\n**For a more detailed installation guide look into our [wiki](https://github.com/MarvinJWendt/run-node-formatter/wiki)**\n\n1. Create a `formatter.yml` file in `.github/workflows/`\n2. Paste this code into the file:\n\n```yml\non: push\nname: Node Code Formatter\njobs:\n  lint:\n    name: Node Code Formatter\n    runs-on: ubuntu-latest\n    steps:\n    - name: Node Code Formatter\n      uses: MarvinJWendt/run-node-formatter@stable\n      env:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n3. Commit the file :twisted_rightwards_arrows:\n\n## Features :sparkles:\n\n1. First runs your `format` script, then runs your `lint` script.\n2. Works on: \n   1. New commit\n   2. Internal branches\n   3. Internal pull requests\n3. Report errors\n\n## Setup formatter scripts :clipboard:\n\nSimply put your code formatter into a script named `format` or `lint` in your `package.json` (Yarn only supports a `lint` script at the moment).\n\n**Make sure that your code formatter is a dependency of your module!**\n\n### StandardJS\n\n```json\n...\n\"scripts\": {\n    \"format\": \"standard --fix\"\n  }\n```\n\n### Prettier\n\n```json\n...\n\"scripts\": {\n    \"format\": \"prettier --write\"\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarvinJWendt%2Frun-node-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMarvinJWendt%2Frun-node-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarvinJWendt%2Frun-node-formatter/lists"}