{"action":"created","issue":{"url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin/issues/35","repository_url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin","labels_url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin/issues/35/comments","events_url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin/issues/35/events","html_url":"https://github.com/hawkins/prettier-webpack-plugin/pull/35","id":351226684,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4ODc1OTE1","number":35,"title":"add `filepath` option","user":{"login":"pastelInc","id":5408269,"node_id":"MDQ6VXNlcjU0MDgyNjk=","avatar_url":"https://avatars3.githubusercontent.com/u/5408269?v=4","gravatar_id":"","url":"https://api.github.com/users/pastelInc","html_url":"https://github.com/pastelInc","followers_url":"https://api.github.com/users/pastelInc/followers","following_url":"https://api.github.com/users/pastelInc/following{/other_user}","gists_url":"https://api.github.com/users/pastelInc/gists{/gist_id}","starred_url":"https://api.github.com/users/pastelInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pastelInc/subscriptions","organizations_url":"https://api.github.com/users/pastelInc/orgs","repos_url":"https://api.github.com/users/pastelInc/repos","events_url":"https://api.github.com/users/pastelInc/events{/privacy}","received_events_url":"https://api.github.com/users/pastelInc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-16T14:19:56Z","updated_at":"2018-08-19T00:45:20Z","closed_at":"2018-08-19T00:30:29Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin/pulls/35","html_url":"https://github.com/hawkins/prettier-webpack-plugin/pull/35","diff_url":"https://github.com/hawkins/prettier-webpack-plugin/pull/35.diff","patch_url":"https://github.com/hawkins/prettier-webpack-plugin/pull/35.patch"},"body":"I tried using [prettier-plugin-elm](https://github.com/gicentre/prettier-plugin-elm) with `pluginSearchDirs` and `plugins` options.\r\n\r\n```\r\n  plugins: [\r\n    new PrettierPlugin({\r\n      extensions: [ \".ts\", \".tsx\", \".elm\" ],\r\n      pluginSearchDirs: [ path.resolve(__dirname, \"node_modules\") ],\r\n      plugins: [ \"prettier-plugin-elm\" ]\r\n    })\r\n  ],\r\n```\r\n\r\nhttps://prettier.io/docs/en/plugins.html\r\n\r\nHowever, since there is no `filepath` option, the prettier could not determine parser from filepath. (The default parser `babylon` was selected)\r\n\r\nhttps://github.com/prettier/prettier/blob/1.14.2/src/main/options.js#L38-L40\r\n\r\nPlease consider merge so that parser of elm can be specified from `filepath`."},"comment":{"url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin/issues/comments/414095164","html_url":"https://github.com/hawkins/prettier-webpack-plugin/pull/35#issuecomment-414095164","issue_url":"https://api.github.com/repos/hawkins/prettier-webpack-plugin/issues/35","id":414095164,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDA5NTE2NA==","user":{"login":"hawkins","id":9123458,"node_id":"MDQ6VXNlcjkxMjM0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/9123458?v=4","gravatar_id":"","url":"https://api.github.com/users/hawkins","html_url":"https://github.com/hawkins","followers_url":"https://api.github.com/users/hawkins/followers","following_url":"https://api.github.com/users/hawkins/following{/other_user}","gists_url":"https://api.github.com/users/hawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/hawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawkins/subscriptions","organizations_url":"https://api.github.com/users/hawkins/orgs","repos_url":"https://api.github.com/users/hawkins/repos","events_url":"https://api.github.com/users/hawkins/events{/privacy}","received_events_url":"https://api.github.com/users/hawkins/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T00:45:20Z","updated_at":"2018-08-19T00:45:20Z","author_association":"OWNER","body":"Just shipped in `1.1.0`"}}
{"actor":{"display_login":"hawkins"}}