{"id":18399211,"url":"https://github.com/xojs/sublimelinter-contrib-xo","last_synced_at":"2025-04-07T05:34:10.115Z","repository":{"id":35775880,"uuid":"40055697","full_name":"xojs/SublimeLinter-contrib-xo","owner":"xojs","description":"SublimeLinter plugin for XO","archived":false,"fork":false,"pushed_at":"2022-08-02T10:29:16.000Z","size":30,"stargazers_count":55,"open_issues_count":6,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-19T21:45:46.555Z","etag":null,"topics":["editor-plugin","sublime-package","sublime-text","sublimelinter","xo"],"latest_commit_sha":null,"homepage":"https://github.com/xojs/xo","language":"Python","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":null,"support":null}},"created_at":"2015-08-01T18:11:21.000Z","updated_at":"2024-06-18T21:06:54.000Z","dependencies_parsed_at":"2022-08-08T11:16:06.695Z","dependency_job_id":null,"html_url":"https://github.com/xojs/SublimeLinter-contrib-xo","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/xojs%2FSublimeLinter-contrib-xo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2FSublimeLinter-contrib-xo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2FSublimeLinter-contrib-xo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2FSublimeLinter-contrib-xo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xojs","download_url":"https://codeload.github.com/xojs/SublimeLinter-contrib-xo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601378,"owners_count":20964861,"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":["editor-plugin","sublime-package","sublime-text","sublimelinter","xo"],"created_at":"2024-11-06T02:26:07.175Z","updated_at":"2025-04-07T05:34:05.105Z","avatar_url":"https://github.com/xojs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SublimeLinter-contrib-xo\n\n![](screenshot.png)\n\nThis linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [XO](https://github.com/xojs/xo). It will be used with files that have the “JavaScript” syntax.\n\n## Installation\n\nSublimeLinter must be installed in order to use this plugin.\n\nPlease use [Package Control](https://packagecontrol.io) to install the linter plugin.\n\nBefore installing this plugin, you must ensure that `xo` is installed in your project:\n\n```sh\nnpm install xo\n```\n\nIn order for `xo` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover [troubleshooting PATH configuration](https://sublimelinter.readthedocs.io/en/latest/troubleshooting.html#finding-a-linter-executable).\n\n## Settings\n\n- [SublimeLinter settings](https://sublimelinter.readthedocs.org/en/latest/settings.html)\n- [Linter settings](https://sublimelinter.readthedocs.org/en/latest/linter_settings.html)\n\nAlso, you can change general plugin setting from: “Preferences › Package Settings › SublimeLinter XO”.\n\n## Auto-fix\n\nTo run the auto-fixer, press the `ctrl+alt+f` shortcut or use the menu entry “Tools › SublimeLinter XO › Fix current file”.\n\nThe shortcut can be changed in “Preferences › Key Bindings” by adding the following to the array:\n\n```json\n{\n\t\"keys\": [\n\t\t\"ctrl+alt+f\"\n\t],\n\t\"command\": \"xo_fix\"\n}\n```\n\nIf you want to run the auto-fixer when saving a file, you can enable the `fix_on_save` setting:\n\n```json\n{\n\t\"fix_on_save\": true\n}\n```\n\n## Tips\n\n### Using non-JS syntax\n\nTypical plugins for ESLint, for example, for TypeScript or Vue, should just work automatically if they're installed locally in your project (defined in the same `package.json`).\n\nFor plugins not supported out-of-the-box, you may need to change the SublimeLinter [`selector` setting](http://www.sublimelinter.com/en/stable/linter_settings.html#selector) to include the correct syntax scope. For Vue, that could be:\n\n```json\n{\n\t\"linters\": {\n\t\t\"xo\": {\n\t\t\t\"selector\": \"text.html.vue, source.js - meta.attribute-with-value\"\n\t\t}\n\t}\n}\n```\n\n### Help, `xo` doesn't lint my HTML files anymore!\n\n`xo` will only lint `*.js` files for standard, vanilla config without further plugins. Either install the [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html) or tweak the `selector`:\n\n```json\n{\n\t\"linters\": {\n\t\t\"xo\": {\n\t\t\t\"selector\": \"source.js - meta.attribute-with-value\"\n\t\t}\n\t}\n}\n```\n\n## Note\n\nXO linting is only enabled for projects with `xo` in `devDependencies`/`dependencies` in package.json.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxojs%2Fsublimelinter-contrib-xo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxojs%2Fsublimelinter-contrib-xo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxojs%2Fsublimelinter-contrib-xo/lists"}