{"action":"closed","issue":{"url":"https://api.github.com/repos/HookyQR/VSCodeBeautify/issues/257","repository_url":"https://api.github.com/repos/HookyQR/VSCodeBeautify","labels_url":"https://api.github.com/repos/HookyQR/VSCodeBeautify/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/HookyQR/VSCodeBeautify/issues/257/comments","events_url":"https://api.github.com/repos/HookyQR/VSCodeBeautify/issues/257/events","html_url":"https://github.com/HookyQR/VSCodeBeautify/issues/257","id":348187722,"node_id":"MDU6SXNzdWUzNDgxODc3MjI=","number":257,"title":"Unexpect `import(...)` to be formatted `import (...)`","user":{"login":"fengxinming","id":6262382,"node_id":"MDQ6VXNlcjYyNjIzODI=","avatar_url":"https://avatars2.githubusercontent.com/u/6262382?v=4","gravatar_id":"","url":"https://api.github.com/users/fengxinming","html_url":"https://github.com/fengxinming","followers_url":"https://api.github.com/users/fengxinming/followers","following_url":"https://api.github.com/users/fengxinming/following{/other_user}","gists_url":"https://api.github.com/users/fengxinming/gists{/gist_id}","starred_url":"https://api.github.com/users/fengxinming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengxinming/subscriptions","organizations_url":"https://api.github.com/users/fengxinming/orgs","repos_url":"https://api.github.com/users/fengxinming/repos","events_url":"https://api.github.com/users/fengxinming/events{/privacy}","received_events_url":"https://api.github.com/users/fengxinming/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-07T06:43:24Z","updated_at":"2018-08-28T10:40:24Z","closed_at":"2018-08-28T10:40:24Z","author_association":"NONE","body":"# Description\r\nIn my codes I use `import(...)` dynamically import JS file with webpack, when I beautify my codes with `js-beautify`, I unexpect `import(...)` to be formatted `import (...)`, for example:\r\n\r\n# Input\r\n```\r\n\r\nconst report = () => import(/* webpackChunkName: \"report\" */ './report/report.vue');\r\n\r\n```\r\n\r\n# Expected Output\r\n```\r\n\r\n// nothing happens\r\nconst report = () => import(/* webpackChunkName: \"report\" */ './report/report.vue');\r\n\r\n```\r\n\r\n# Actual Output\r\n```\r\n\r\nconst report = () =>\r\n    import (/* webpackChunkName: \"report\" */ './report/report.vue');\r\n\r\n```\r\n\r\n# Steps to Reproduce\r\n\r\n\r\n## Environment\r\nOS: Macbook Air\r\n\r\n\r\n## Settings\r\nVscode for example:\r\n```json\r\n{\r\n    \"editor.tabSize\": 2,\r\n    \"editor.formatOnSave\": true,\r\n    \"prettier.singleQuote\": true,\r\n    \"git.autofetch\": true,\r\n    \"files.insertFinalNewline\": true\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"HookyQR"}}