{"id":16642054,"url":"https://github.com/artskydj/sublimelinter-eslist-bin-issue","last_synced_at":"2026-04-19T16:02:25.966Z","repository":{"id":146977240,"uuid":"193628372","full_name":"ArtskydJ/sublimelinter-eslist-bin-issue","owner":"ArtskydJ","description":null,"archived":false,"fork":false,"pushed_at":"2019-06-25T04:00:34.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-27T01:59:08.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ArtskydJ.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":"2019-06-25T03:30:37.000Z","updated_at":"2019-06-25T04:00:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d507267-a42e-46dd-891c-41822ac1c792","html_url":"https://github.com/ArtskydJ/sublimelinter-eslist-bin-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ArtskydJ/sublimelinter-eslist-bin-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsublimelinter-eslist-bin-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsublimelinter-eslist-bin-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsublimelinter-eslist-bin-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsublimelinter-eslist-bin-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtskydJ","download_url":"https://codeload.github.com/ArtskydJ/sublimelinter-eslist-bin-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsublimelinter-eslist-bin-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32012787,"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":[],"created_at":"2024-10-12T07:48:44.425Z","updated_at":"2026-04-19T16:02:25.928Z","avatar_url":"https://github.com/ArtskydJ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository is meant to demonstrate an issue in\r\nSublimeLinter-eslint.\r\n\r\n## steps to replicate\r\n\r\n#### prerequisites\r\n\r\n1. SublimeLinter\r\n2. SublimeLinter-eslint (https://github.com/SublimeLinter/SublimeLinter-eslint#installation)\r\n3. Node.js (and npm)\r\n4. eslint `npm install -g eslint`\r\n\r\n#### steps\r\n\r\n1. Clone this repo\r\n2. Open bin.js in Sublime Text\r\n3. Save it. You will see `eslint(erred)` in the status bar.\r\n4. Open the sublime console. You'll see the error I got below, which is `TypeError: string indices must be integers`\r\n\r\n## workaround\r\n\r\nChange the `package.json` file to this:\r\n```json\r\n{\"bin\":{\"cli\":\"whatever.js\"}}\r\n```\r\n\r\nThen save bin.js, and the syntax error will be found.\r\n\r\n\r\n## full error message\r\n\r\nI have SublimeLinter debug:true in my user settings. Even without that, you should recieve the entire stack trace below\r\n\r\n```\r\nSublimeLinter: #104 linter.py:1003    eslint: linting 'bin.js'\r\nSublimeLinter: #104 __init__.py:1273  ERROR: Unhandled exception:\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\Joseph\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\SublimeLinter.sublime-package\\lint/backend.py\", line 157, in execute_lint_task\r\n    errors = linter.lint(code, view_has_changed)\r\n  File \"C:\\Users\\Joseph\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\SublimeLinter.sublime-package\\lint/linter.py\", line 1010, in lint\r\n    cmd = self.get_cmd()\r\n  File \"C:\\Users\\Joseph\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\SublimeLinter.sublime-package\\lint/linter.py\", line 729, in get_cmd\r\n    return self.build_cmd(cmd)\r\n  File \"C:\\Users\\Joseph\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\SublimeLinter.sublime-package\\lint/linter.py\", line 742, in build_cmd\r\n    have_path, path = self.context_sensitive_executable_path(cmd)\r\n  File \"C:\\Users\\Joseph\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\SublimeLinter.sublime-package\\lint/base_linter/node_linter.py\", line 81, in context_sensitive_executable_path\r\n    local_cmd = self.find_local_executable(start_dir, npm_name)\r\n  File \"C:\\Users\\Joseph\\AppData\\Roaming\\Sublime Text 3\\Installed Packages\\SublimeLinter.sublime-package\\lint/base_linter/node_linter.py\", line 126, in find_local_executable\r\n    script = os.path.normpath(os.path.join(path, manifest['bin'][npm_name]))\r\nTypeError: string indices must be integers\r\n```\r\n\r\n## what I expect to happen\r\n\r\nSince NPM supports the [bin property](https://docs.npmjs.com/files/package.json#bin) being set as a string, as well as an object...\r\n\r\n\r\nI expect that the bin property can be set as a string and sublime linter should not fail.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fsublimelinter-eslist-bin-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartskydj%2Fsublimelinter-eslist-bin-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fsublimelinter-eslist-bin-issue/lists"}