{"id":13800428,"url":"https://github.com/xojs/eslint-config-xo","last_synced_at":"2025-05-14T04:07:34.907Z","repository":{"id":1092243,"uuid":"40052921","full_name":"xojs/eslint-config-xo","owner":"xojs","description":"ESLint shareable config for XO","archived":false,"fork":false,"pushed_at":"2025-03-14T06:15:49.000Z","size":219,"stargazers_count":273,"open_issues_count":0,"forks_count":43,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-10T22:35:00.532Z","etag":null,"topics":["eslint","eslint-config","eslint-rules","nodejs","xo"],"latest_commit_sha":null,"homepage":"https://github.com/xojs/xo","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/xojs.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":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sindresorhus"}},"created_at":"2015-08-01T16:34:57.000Z","updated_at":"2025-04-07T04:12:43.000Z","dependencies_parsed_at":"2023-09-27T05:56:48.142Z","dependency_job_id":"1aa17d37-fdfa-4b71-9565-f398a2a095cc","html_url":"https://github.com/xojs/eslint-config-xo","commit_stats":{"total_commits":336,"total_committers":23,"mean_commits":"14.608695652173912","dds":0.09226190476190477,"last_synced_commit":"4bb2399f1b3a1ce1fcf88f642a3414635855cd15"},"previous_names":[],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Feslint-config-xo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Feslint-config-xo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Feslint-config-xo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Feslint-config-xo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xojs","download_url":"https://codeload.github.com/xojs/eslint-config-xo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254069216,"owners_count":22009511,"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-config","eslint-rules","nodejs","xo"],"created_at":"2024-08-04T00:01:12.502Z","updated_at":"2025-05-14T04:07:34.825Z","avatar_url":"https://github.com/xojs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus"],"categories":["Configs","JavaScript","nodejs"],"sub_categories":["Other Prominent Configs (100 stars or so)"],"readme":"# eslint-config-xo\n\n\u003e ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for [XO](https://github.com/xojs/xo)\n\nThis is for advanced users. [You probably want to use XO directly.](#use-the-xo-cli-instead)\n\nSee [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) for some additional useful rules.\n\n**Use the [XO issue tracker](https://github.com/xojs/xo/issues) instead of this one.**\n\n## Install\n\n```sh\nnpm install --save-dev eslint-config-xo\n```\n\n## Usage\n\n```js\n// eslint.config.js\nimport xo from 'eslint-config-xo';\n\nexport default [\n\t...xo,\n];\n```\n\nThis package also exposes [`eslint-config-xo/browser`](browser.js) if you're in the browser:\n\n```js\nimport xoBrowser from 'eslint-config-xo/browser';\n\nexport default [\n\t...xoBrowser,\n];\n```\n\nThis package also exposes [`eslint-config-xo/space`](space.js) if you're in favor of 2-space indent:\n\n```js\nimport xoSpace from 'eslint-config-xo/space';\n\nexport default [\n\t...xoSpace,\n];\n```\n\nThis package also exposes [`eslint-config-xo/space/browser`](space-browser.js) if you're in favor of 2-space indent and in browser:\n\n```js\nimport xoSpaceBrowser from 'eslint-config-xo/space/browser';\n\nexport default [\n\t...xoSpaceBrowser,\n];\n```\n\n## Use the XO CLI instead\n\nXO is an ESLint wrapper with great defaults.\n\nHere are some reason why you should use the [XO CLI](https://github.com/xojs/xo) instead of this config:\n\n- XO comes bundled with this config.\n- [Beautiful output.](https://github.com/sindresorhus/eslint-formatter-pretty)\n- Bundles many useful plugins, like [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn), [`eslint-plugin-import`](https://github.com/benmosher/eslint-plugin-import), [`eslint-plugin-ava`](https://github.com/avajs/eslint-plugin-ava), and more.\n- No need to specify file paths to lint. It will lint all JS files except [commonly ignored paths](https://github.com/xojs/xo#ignores).\n- Super simple to add XO to a project with [`$ npm init xo`](https://github.com/xojs/create-xo).\n- Specify `indent` and `semicolon` preferences easily without messing with the rule config.\n- Config/rule overrides per files/globs.\n- Can open all files with errors at the correct line in your editor. *(See the `--open` flag)*\n- The [editor plugins](https://github.com/xojs/xo#editor-plugins) are IMHO better than the ESLint ones. *(Subjective)*\n\ntl;dr You miss out on a lot by just using this config.\n\n## Related\n\n- [eslint-config-xo-space](https://github.com/xojs/eslint-config-xo-space) - ESLint shareable config for XO with 2-space indent\n- [eslint-config-xo-typescript](https://github.com/xojs/eslint-config-xo-typescript) - ESLint shareable config for TypeScript to be used with this config\n- [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react) - ESLint shareable config for React to be used with this config\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxojs%2Feslint-config-xo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxojs%2Feslint-config-xo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxojs%2Feslint-config-xo/lists"}