{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/10127","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/10127/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/10127/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/10127/events","html_url":"https://github.com/eslint/eslint/issues/10127","id":308538401,"node_id":"MDU6SXNzdWUzMDg1Mzg0MDE=","number":10127,"title":"Async Arrow Function \"Unexpected token =\"","user":{"login":"Biuni","id":11752289,"node_id":"MDQ6VXNlcjExNzUyMjg5","avatar_url":"https://avatars1.githubusercontent.com/u/11752289?v=4","gravatar_id":"","url":"https://api.github.com/users/Biuni","html_url":"https://github.com/Biuni","followers_url":"https://api.github.com/users/Biuni/followers","following_url":"https://api.github.com/users/Biuni/following{/other_user}","gists_url":"https://api.github.com/users/Biuni/gists{/gist_id}","starred_url":"https://api.github.com/users/Biuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Biuni/subscriptions","organizations_url":"https://api.github.com/users/Biuni/orgs","repos_url":"https://api.github.com/users/Biuni/repos","events_url":"https://api.github.com/users/Biuni/events{/privacy}","received_events_url":"https://api.github.com/users/Biuni/received_events","type":"User","site_admin":false},"labels":[{"id":246711855,"node_id":"MDU6TGFiZWwyNDY3MTE4NTU=","url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"d4c5f9","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-26T11:45:42Z","updated_at":"2018-08-29T14:41:26Z","closed_at":null,"author_association":"NONE","body":"**Tell us about your environment**\r\n\r\n* **ESLint Version:** 4.18.1\r\n* **Node Version:** 8.9.1\r\n* **npm Version:** 5.5.1\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?**\r\nBabel-ESlint\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{\r\n  \"extends\": \"airbnb\",\r\n  \"parserOptions\": {\r\n    \"ecmaVersion\": 8\r\n  },\r\n  \"env\": {\r\n    \"jest\": true,\r\n    \"browser\": true\r\n  },\r\n  \"rules\": {\r\n    \"semi\": [\r\n      2,\r\n      \"never\"\r\n    ],\r\n    \"no-unexpected-multiline\": 2,\r\n    \"import/no-named-as-default\": 0,\r\n    \"import/no-named-as-default-member\": 0,\r\n    \"react/prop-types\": 0,\r\n    \"react/jsx-filename-extension\": [\r\n      1,\r\n      {\r\n        \"extensions\": [\r\n          \".js\",\r\n          \".jsx\"\r\n        ]\r\n      }\r\n    ],\r\n    \"jsx-a11y/anchor-is-valid\": [\r\n      \"error\",\r\n      {\r\n        \"components\": [\r\n          \"Link\"\r\n        ],\r\n        \"specialLink\": [\r\n          \"to\"\r\n        ]\r\n      }\r\n    ],\r\n    \"no-unused-expressions\": [\r\n      \"error\",\r\n      {\r\n        \"allowTernary\": true\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n</details>\r\n\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  callApi = async (url) => {\r\n    const response = await fetch(url)\r\n    const body = await response.json()\r\n\r\n    if (response.status !== 200) {\r\n      throw Error(body.message)\r\n    }\r\n\r\n    return body\r\n  }\r\n```\r\n\r\n<!-- Paste the command you used to run ESLint: -->\r\n```bash\r\neslint src\r\n```\r\n\r\n**What did you expect to happen?**\r\nESLint done.\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n\" error  Parsing error: Unexpected token = \" \r\n[ callApi = async (url) .... is the problem ]"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/416979080","html_url":"https://github.com/eslint/eslint/issues/10127#issuecomment-416979080","issue_url":"https://api.github.com/repos/eslint/eslint/issues/10127","id":416979080,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjk3OTA4MA==","user":{"login":"Koviac","id":26249003,"node_id":"MDQ6VXNlcjI2MjQ5MDAz","avatar_url":"https://avatars2.githubusercontent.com/u/26249003?v=4","gravatar_id":"","url":"https://api.github.com/users/Koviac","html_url":"https://github.com/Koviac","followers_url":"https://api.github.com/users/Koviac/followers","following_url":"https://api.github.com/users/Koviac/following{/other_user}","gists_url":"https://api.github.com/users/Koviac/gists{/gist_id}","starred_url":"https://api.github.com/users/Koviac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koviac/subscriptions","organizations_url":"https://api.github.com/users/Koviac/orgs","repos_url":"https://api.github.com/users/Koviac/repos","events_url":"https://api.github.com/users/Koviac/events{/privacy}","received_events_url":"https://api.github.com/users/Koviac/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T14:41:26Z","updated_at":"2018-08-29T14:41:26Z","author_association":"NONE","body":"@not-an-aardvark \r\nNode v8.9.4\r\nNPM v6.4.0\r\nEslint v5.4.0 \r\n\r\nEslint flags async/await functions or statements saying:  'Async functions are not supported until Node.js 7.6.0. The configured version range is '>=6.0.0'. (node/no-unsupported-features/es-syntax)'\r\n\r\n.eslintrc.json\r\n{\r\n  \"env\": {\r\n      \"browser\": true,\r\n      \"es6\": true,\r\n      \"node\": true\r\n  },\r\n  \"extends\": [\"airbnb-base\", \"plugin:angular/johnpapa\", \"plugin:node/recommended\"],\r\n  \"parserOptions\": {\r\n    \"ecmaVersion\": 2017\r\n  },\r\n}\r\n\r\nPlease what could I possibly be doing wrong"}}
{"actor":{"display_login":"Koviac"}}