{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier-vscode/issues/420","repository_url":"https://api.github.com/repos/prettier/prettier-vscode","labels_url":"https://api.github.com/repos/prettier/prettier-vscode/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier-vscode/issues/420/comments","events_url":"https://api.github.com/repos/prettier/prettier-vscode/issues/420/events","html_url":"https://github.com/prettier/prettier-vscode/issues/420","id":314548068,"number":420,"title":"Prettier turns typescript function call with generics into something weird that doesn't work","user":{"login":"AlmaasAre","id":1777366,"avatar_url":"https://avatars2.githubusercontent.com/u/1777366?v=4","gravatar_id":"","url":"https://api.github.com/users/AlmaasAre","html_url":"https://github.com/AlmaasAre","followers_url":"https://api.github.com/users/AlmaasAre/followers","following_url":"https://api.github.com/users/AlmaasAre/following{/other_user}","gists_url":"https://api.github.com/users/AlmaasAre/gists{/gist_id}","starred_url":"https://api.github.com/users/AlmaasAre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlmaasAre/subscriptions","organizations_url":"https://api.github.com/users/AlmaasAre/orgs","repos_url":"https://api.github.com/users/AlmaasAre/repos","events_url":"https://api.github.com/users/AlmaasAre/events{/privacy}","received_events_url":"https://api.github.com/users/AlmaasAre/received_events","type":"User","site_admin":false},"labels":[{"id":684040754,"url":"https://api.github.com/repos/prettier/prettier-vscode/labels/need%20more%20info","name":"need more info","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-16T08:29:02Z","updated_at":"2018-04-19T09:33:44Z","closed_at":null,"author_association":"NONE","body":"My code turns from:\r\n\r\n```typescript\r\nconst result: ApolloQueryResult<ITermScreenQueryResult> =\r\n      await apolloClient.query< ITermScreenQueryResult > (options);\r\n```\r\n\r\ninto:\r\n\r\n```typescript\r\nconst result: ApolloQueryResult<ITermScreenQueryResult> =\r\n      (await apolloClient.query) < ITermScreenQueryResult > options;\r\n```\r\n\r\nAnd not sure what could be causing this :|\r\n\r\nUsing prettier, editorconfig and tslint:\r\n\r\neditorconfig\r\n\r\n```\r\n# http://editorconfig.org\r\nroot = true\r\n\r\n[*]\r\nindent_style = space\r\nindent_size = 2\r\nend_of_line = lf\r\ncharset = utf-8\r\ntrim_trailing_whitespace = true\r\ninsert_final_newline = true\r\n\r\n[*.md]\r\ntrim_trailing_whitespace = false\r\n\r\n```\r\n\r\ntslint:\r\n\r\n```\r\n{\r\n  \"rules\": {\r\n    \"ban\": false,\r\n    \"class-name\": true,\r\n    \"comment-format\": [true, \"check-space\", \"check-lowercase\"],\r\n    \"curly\": true,\r\n    \"forin\": true,\r\n    \"interface-name\": true,\r\n    \"jsdoc-format\": true,\r\n    \"label-position\": true,\r\n    \"member-ordering\": [true, \"public-before-private\", \"variables-before-functions\"],\r\n    \"no-angle-bracket-type-assertion\": true,\r\n    \"no-arg\": true,\r\n    \"no-bitwise\": true,\r\n    \"no-console\": [true, \"debug\", \"info\", \"time\", \"timeEnd\", \"trace\"],\r\n    \"no-construct\": true,\r\n    \"no-parameter-properties\": false,\r\n    \"no-debugger\": true,\r\n    \"no-duplicate-variable\": true,\r\n    \"no-empty\": true,\r\n    \"no-eval\": true,\r\n    \"no-invalid-this\": true,\r\n    \"no-string-literal\": false,\r\n    \"no-switch-case-fall-through\": false,\r\n    \"no-unused-expression\": true,\r\n    \"no-var-requires\": false,\r\n    \"no-var-keyword\": true,\r\n    \"radix\": true,\r\n    \"switch-default\": true,\r\n    \"triple-equals\": [true, \"allow-null-check\"],\r\n    \"typedef\": [\r\n      \"call-signature\",\r\n      \"parameter\",\r\n      \"property-declaration\",\r\n      \"variable-declaration\",\r\n      \"member-variable-declaration\"\r\n    ],\r\n    \"variable-name\": false\r\n  }\r\n}\r\n\r\n```\r\n\r\nPrettier:\r\n\r\n```\r\n{\r\n    \"useTabs\": false,\r\n    \"printWidth\": 100,\r\n    \"tabWidth\": 2,\r\n    \"singleQuote\": true,\r\n    \"trailingComma\": \"all\",\r\n    \"jsxBracketSameLine\": true,\r\n    \"parser\": \"babylon\"\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/prettier/prettier-vscode/issues/comments/382672592","html_url":"https://github.com/prettier/prettier-vscode/issues/420#issuecomment-382672592","issue_url":"https://api.github.com/repos/prettier/prettier-vscode/issues/420","id":382672592,"user":{"login":"CiGit","id":1453420,"avatar_url":"https://avatars1.githubusercontent.com/u/1453420?v=4","gravatar_id":"","url":"https://api.github.com/users/CiGit","html_url":"https://github.com/CiGit","followers_url":"https://api.github.com/users/CiGit/followers","following_url":"https://api.github.com/users/CiGit/following{/other_user}","gists_url":"https://api.github.com/users/CiGit/gists{/gist_id}","starred_url":"https://api.github.com/users/CiGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiGit/subscriptions","organizations_url":"https://api.github.com/users/CiGit/orgs","repos_url":"https://api.github.com/users/CiGit/repos","events_url":"https://api.github.com/users/CiGit/events{/privacy}","received_events_url":"https://api.github.com/users/CiGit/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T09:33:44Z","updated_at":"2018-04-19T09:33:44Z","author_association":"COLLABORATOR","body":"Are you using eslintIntegration and have an eslint config somewhere?\r\n"}}
{"actor":{"display_login":"CiGit"}}