{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/10369","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/10369/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/10369/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/10369/events","html_url":"https://github.com/eslint/eslint/issues/10369","id":324198213,"number":10369,"title":"Unexpected token )","user":{"login":"gamut","id":67087,"avatar_url":"https://avatars0.githubusercontent.com/u/67087?v=4","gravatar_id":"","url":"https://api.github.com/users/gamut","html_url":"https://github.com/gamut","followers_url":"https://api.github.com/users/gamut/followers","following_url":"https://api.github.com/users/gamut/following{/other_user}","gists_url":"https://api.github.com/users/gamut/gists{/gist_id}","starred_url":"https://api.github.com/users/gamut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamut/subscriptions","organizations_url":"https://api.github.com/users/gamut/orgs","repos_url":"https://api.github.com/users/gamut/repos","events_url":"https://api.github.com/users/gamut/events{/privacy}","received_events_url":"https://api.github.com/users/gamut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T21:48:32Z","updated_at":"2018-05-17T21:48:32Z","closed_at":null,"author_association":"NONE","body":"**Tell us about your environment**\r\n\r\n* **ESLint Version:** 4.19.1\r\n* **Node Version:** 9.11.1\r\n* **npm Version:** 5.6.0\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?** default\r\n\r\n**Please show your full configuration:**\r\n\r\n<details>\r\n<summary>Configuration</summary>\r\n\r\n<!-- Paste your configuration below: -->\r\n```js\r\n// Use this file as a starting point for your project's .eslintrc.\r\n// Copy this file, and add rule overrides as needed.\r\n{\r\n  \"extends\": [\r\n    \"airbnb\", \"plugin:vue/essential\",\r\n  ],\r\n  \"env\": {\r\n    \"jquery\": true,\r\n    \"browser\": true\r\n  },\r\n  \"globals\": {\r\n    \"App\": true,\r\n    \"$\": true\r\n  },\r\n  \"rules\": {\r\n    \"max-len\": [2, 140, 2],\r\n    \"no-param-reassign\": \"warn\",\r\n    \"no-underscore-dangle\": \"off\",\r\n    \"prefer-destructuring\": [\r\n      \"error\",\r\n      {\r\n        \"array\": false,\r\n        \"object\": false\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n</details>\r\n\r\n**What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.**\r\n\r\n<!-- Paste the source code below: -->\r\n```js\r\n  initChatCable(store, token) {\r\n    this.disconnectIfNecessary();\r\n    if (!token) {\r\n      return;\r\n    }\r\n    this.disconnectIfNecessary();\r\n    this.chatCable = App.cable.subscriptions.create(\r\n      {\r\n        channel: 'ChatChannel',\r\n        chatToken: token,\r\n      },\r\n      {\r\n        connected() {\r\n          this.subscribe();\r\n        },\r\n\r\n        disconnected() {\r\n          console.log('WebSocket disconnected.');\r\n        },\r\n\r\n        received(data) {\r\n          const message = JSON.parse(data.message);\r\n          const prompt = JSON.parse(data.prompt);\r\n          const chat = JSON.parse(data.chat);\r\n\r\n          store.commit('receiveMessage', {\r\n            token,\r\n            chat,\r\n            message,\r\n            prompt,\r\n          });\r\n        },\r\n\r\n        sendMessage(message) {\r\n          this.perform('send_message', { message });\r\n        },\r\n\r\n        sendResponse(response) {\r\n          this.perform('send_response', { response });\r\n        },\r\n\r\n        subscribe() {\r\n          // return this.perform('subscribe');\r\n        },\r\n      },\r\n    );\r\n  },\r\n```\r\n\r\n<!-- Paste the command you used to run ESLint: -->\r\n```bash\r\neslint app/javascript/packs/rather_chat/api/chats.js \r\n```\r\n\r\n**What did you expect to happen?**\r\n\r\nThis is a perfectly valid file.\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n\r\n  72:5  error  Parsing error: Unexpected token )\r\n\r\n✖ 1 problem (1 error, 0 warnings)\r\n"}}
{"actor":{"display_login":"gamut"}}