{"id":15021971,"url":"https://github.com/geut/xd","last_synced_at":"2025-04-10T22:44:40.958Z","repository":{"id":49971832,"uuid":"213057205","full_name":"geut/xd","owner":"geut","description":"Run your lint and formatter in a single fast daemon. :laughing:","archived":false,"fork":false,"pushed_at":"2021-06-25T11:30:13.000Z","size":910,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T22:44:35.676Z","etag":null,"topics":["eslint","formatter","linters","prettier","standard","tooling"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/geut.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-05T19:14:08.000Z","updated_at":"2023-11-08T00:30:59.000Z","dependencies_parsed_at":"2022-09-16T13:11:06.852Z","dependency_job_id":null,"html_url":"https://github.com/geut/xd","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fxd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fxd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fxd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fxd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geut","download_url":"https://codeload.github.com/geut/xd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312190,"owners_count":21082637,"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","formatter","linters","prettier","standard","tooling"],"created_at":"2024-09-24T19:57:16.846Z","updated_at":"2025-04-10T22:44:40.935Z","avatar_url":"https://github.com/geut.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xd :laughing:\n\n[![Build Status](https://travis-ci.com/geut/xd.svg?branch=master)](https://travis-ci.com/geut/xd)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n\u003e Run your lint and formatter in a single fast daemon.\n\nThis project is based on [eslint_d](https://github.com/mantoni/eslint_d.js).\n\n## How it works\n\nxd is a tool that detects your local lint and starts a daemon server so your next lint/format operations would run faster.\n\nxd support eslint compatible engines.\n\nWe support the next engines:\n  - `standard`\n  - `semistandard`\n  - `standard + prettier`\n  - `semistandard + prettier`\n  - `eslint`\n\n## \u003ca name=\"install\"\u003e\u003c/a\u003e Install\n\n```\n$ npm install -g @geut/xd\n```\n\n## \u003ca name=\"usage\"\u003e\u003c/a\u003e Usage\n\n### standard\n\nStart by adding your lint dependencies locally:\n\n```\n$ npm install --save-dev standard\n```\n\nThat's it, try to execute `xd` in your project:\n\n```\n$ xd *.js\n```\n\nTo fix your file:\n\n```\n$ xd *.js --fix\n```\n\n### standard + prettier\n\nWe include a prettier configuration for your standard lint that performs as a linter and formatter.\n\nPrettier will run by:\n- Binary `xd-prettier index.js`\n- Option `xd --prettier index.js`\n- ENV variable `PRETTIER=1 xd index.js`\n- Detecting the presence of a `.prettierrc` config file in your project.\n\nxd uses prettierx so you can use any of the next configuration files for your prettier:\n\n- .prettierrc\n- .editorconfig\n\n### eslint\n\nxd will check your local binary eslint and configuration or it will use a fallback binary that we include.\n\n## No Server\n\nExists special cases where maybe you need to use `xd` without running a server.\n\nYou can use the binary: `xd-ns` or `xd --no-server`.\n\n## Help\n\n```\n$ xd --help\n```\n\n## IDE Support\n\n### vim/nvim using ALE\n\n```vim\nlet g:ale_javascript_eslint_use_global = 1\nlet g:ale_javascript_eslint_executable = 'xd'\nlet g:ale_linters = {\n  \\ 'javascript': ['eslint']\n\\}\nlet g:ale_fixers = {\n  \\ 'javascript': ['eslint']\n\\}\n```\n\n## \u003ca name=\"issues\"\u003e\u003c/a\u003e Issues\n\n:bug: If you found an issue we encourage you to report it on [github](https://github.com/geut/xd/issues). Please specify your OS and the actions to reproduce it.\n\n## \u003ca name=\"contribute\"\u003e\u003c/a\u003e Contributing\n\n:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this [guideline](https://github.com/geut/xd/blob/master/CONTRIBUTING.md).\n\n## License\n\nMIT © A [**GEUT**](http://geutstudio.com/) project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeut%2Fxd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeut%2Fxd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeut%2Fxd/lists"}