{"id":17892087,"url":"https://github.com/ppseprus/vscode-eslint-bug","last_synced_at":"2025-04-03T03:29:19.597Z","repository":{"id":244591619,"uuid":"815690773","full_name":"ppseprus/vscode-eslint-bug","owner":"ppseprus","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-15T21:18:52.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T17:32:19.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/ppseprus.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":"2024-06-15T21:09:15.000Z","updated_at":"2024-06-15T21:18:55.000Z","dependencies_parsed_at":"2024-06-15T22:25:14.235Z","dependency_job_id":"b819e51d-f389-4a28-9668-528f810868eb","html_url":"https://github.com/ppseprus/vscode-eslint-bug","commit_stats":null,"previous_names":["ppseprus/vscode-eslint-bug"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppseprus%2Fvscode-eslint-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppseprus%2Fvscode-eslint-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppseprus%2Fvscode-eslint-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppseprus%2Fvscode-eslint-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppseprus","download_url":"https://codeload.github.com/ppseprus/vscode-eslint-bug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246932581,"owners_count":20857018,"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":[],"created_at":"2024-10-28T14:29:51.736Z","updated_at":"2025-04-03T03:29:19.565Z","avatar_url":"https://github.com/ppseprus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VSCode ESLint Bug\n\nIn VSCode, when an incorrect config breaks the ESLint server, the \"Restart ESLint Server\" command does not work.\n\nhttps://github.com/eslint/eslint/issues/18592\n\n## Versions\nNode version: 20.12.2\nnpm version: 10.5.2\nGlobal ESLint version: none\nLocal ESLint version: 9.5.0\nVSCode extension version: 2.4.4\nVSCode version: 1.90.1\nOperating System: macOS Sonoma 14.5 (23F79)\n\n## ESLint Config\n```js\n// eslint.config.js\nexport default [{\n  rules: {\n    \"no-unused-vars\": \"error\",\n  }\n}]\n```\n\n## Steps to Reproduce\n1. Using the above minimal config, have the ESLint server up and running in VSCode\n```log\n[Info  - 10:43:36 PM] ESLint server is starting.\n[Info  - 10:43:37 PM] ESLint server running in node v20.9.0\n[Info  - 10:43:37 PM] ESLint server is running.\n[Info  - 10:43:37 PM] ESLint library loaded from: /Users/[...]/node_modules/eslint/lib/api.js\n```\n2. Break the config by misconfiguring it (eg. add `ignore` instead of `ignores`) **and hit save**\n```log\n[Error - 10:47:47 PM] An unexpected error occurred:\n[Error - 10:47:47 PM] ConfigError: Config (unnamed): Unexpected key \"ignore\" found.\n```\n3. Remove / fix the incorrect **and hit save**\n4. Open the Command Palette (cmd + shift + P) and select \"ESLint: Restart ESLint Server\"\n5. Open the Command Palette (cmd + shift + P) and select \"ESLint: Show Output Channel\"\n\n## Expected Behaviour\n\nThe ESLint plugin to restart and work correctly.\n\n\n## Actual Behaviour\n\nAfter the restart, the ESLint server exits.\n\n```log\n...\n[Error - 10:49:40 PM] Server process exited with code 0.\n```\n\nThe developer has to reload VSCode to get it working again.\n\n## Additional Information\n\nThe same thing happens, when the config is provided via a `*.json` file and there's a trailing comma at the last line. Incorrectly formatted `*.json` breaks the server and the restart does not seem to work event after the issue is fixed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppseprus%2Fvscode-eslint-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppseprus%2Fvscode-eslint-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppseprus%2Fvscode-eslint-bug/lists"}