{"action":"created","issue":{"url":"https://api.github.com/repos/smooth-code/svgr/issues/125","repository_url":"https://api.github.com/repos/smooth-code/svgr","labels_url":"https://api.github.com/repos/smooth-code/svgr/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/smooth-code/svgr/issues/125/comments","events_url":"https://api.github.com/repos/smooth-code/svgr/issues/125/events","html_url":"https://github.com/smooth-code/svgr/issues/125","id":333097217,"node_id":"MDU6SXNzdWUzMzMwOTcyMTc=","number":125,"title":"Enable Prettier support for EditorConfig","user":{"login":"loicplaire","id":1925075,"node_id":"MDQ6VXNlcjE5MjUwNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/1925075?v=4","gravatar_id":"","url":"https://api.github.com/users/loicplaire","html_url":"https://github.com/loicplaire","followers_url":"https://api.github.com/users/loicplaire/followers","following_url":"https://api.github.com/users/loicplaire/following{/other_user}","gists_url":"https://api.github.com/users/loicplaire/gists{/gist_id}","starred_url":"https://api.github.com/users/loicplaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loicplaire/subscriptions","organizations_url":"https://api.github.com/users/loicplaire/orgs","repos_url":"https://api.github.com/users/loicplaire/repos","events_url":"https://api.github.com/users/loicplaire/events{/privacy}","received_events_url":"https://api.github.com/users/loicplaire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-17T22:14:04Z","updated_at":"2018-06-20T19:08:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"@neoziro What would think of enabling editorconfig in [the prettier plugin](https://github.com/smooth-code/svgr/blob/master/packages/core/src/plugins/prettier.js#L7-L11) so that when `svgr` formats the code with Prettier it parses the `.editorconfig` file?\r\n\r\n```js\r\nconst prettierRcConfig = await prettier.resolveConfig(filePath, { editorconfig: true })\r\n```\r\n\r\nIn our project we have the `max_line_length` defined in our `.editorconfig` file so we currently don't define `printWidth` in our `.prettierrc` file to avoid repetition.\r\n\r\n[`prettier.resolveConfig()`](https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath-options) has the `editorconfig` turned off by default so at the moment we have to duplicate that value if we want to use `svgr`.\r\n\r\nI can open a PR if you are happy with that change. 👍\r\n"},"comment":{"url":"https://api.github.com/repos/smooth-code/svgr/issues/comments/398862758","html_url":"https://github.com/smooth-code/svgr/issues/125#issuecomment-398862758","issue_url":"https://api.github.com/repos/smooth-code/svgr/issues/125","id":398862758,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODg2Mjc1OA==","user":{"login":"neoziro","id":266302,"node_id":"MDQ6VXNlcjI2NjMwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/266302?v=4","gravatar_id":"","url":"https://api.github.com/users/neoziro","html_url":"https://github.com/neoziro","followers_url":"https://api.github.com/users/neoziro/followers","following_url":"https://api.github.com/users/neoziro/following{/other_user}","gists_url":"https://api.github.com/users/neoziro/gists{/gist_id}","starred_url":"https://api.github.com/users/neoziro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neoziro/subscriptions","organizations_url":"https://api.github.com/users/neoziro/orgs","repos_url":"https://api.github.com/users/neoziro/repos","events_url":"https://api.github.com/users/neoziro/events{/privacy}","received_events_url":"https://api.github.com/users/neoziro/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T19:08:05Z","updated_at":"2018-06-20T19:08:05Z","author_association":"MEMBER","body":"Yeah of course, PR welcome!"}}
{"actor":{"display_login":"neoziro"}}