{"action":"closed","issue":{"url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/123","repository_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components","labels_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/123/comments","events_url":"https://api.github.com/repos/styled-components/babel-plugin-styled-components/issues/123/events","html_url":"https://github.com/styled-components/babel-plugin-styled-components/issues/123","id":290819527,"number":123,"title":"Option to remove file from component's displayName","user":{"login":"lcsrinaldi","id":1268808,"avatar_url":"https://avatars3.githubusercontent.com/u/1268808?v=4","gravatar_id":"","url":"https://api.github.com/users/lcsrinaldi","html_url":"https://github.com/lcsrinaldi","followers_url":"https://api.github.com/users/lcsrinaldi/followers","following_url":"https://api.github.com/users/lcsrinaldi/following{/other_user}","gists_url":"https://api.github.com/users/lcsrinaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/lcsrinaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcsrinaldi/subscriptions","organizations_url":"https://api.github.com/users/lcsrinaldi/orgs","repos_url":"https://api.github.com/users/lcsrinaldi/repos","events_url":"https://api.github.com/users/lcsrinaldi/events{/privacy}","received_events_url":"https://api.github.com/users/lcsrinaldi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-23T12:31:24Z","updated_at":"2018-05-09T05:58:54Z","closed_at":"2018-05-09T05:58:54Z","author_association":"NONE","body":"Hello! At the project that I'm currently working on we use the following structure for our components:\r\n\r\n```\r\nComponent/\r\n- index.js\r\n- index.spec.js\r\n- index.story.js\r\n- index.styled.js -- this is where all the styled components related to the component live.\r\n```\r\n\r\nSo far so good, this is still working like a charm. The problem is, when I use this plugin to rename all my components to a better `displayName` it takes into account the file name where the component is located, e.g.:\r\n\r\n```\r\n<indexstyled__DropdownContainer innerRef={[Function]}>\r\n    <indexstyled__DropdownIcon onClick={[Function]} open={false} />\r\n</indexstyled__DropdownContainer>\r\n```\r\n\r\nMy question is, would be possible to remove this `indexstyled__` from the component name?\r\n\r\nThanks :)"}}
{"actor":{"display_login":"probablyup"}}