{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/322","repository_url":"https://api.github.com/repos/AtomLinter/linter-stylelint","labels_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/322/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/322/events","html_url":"https://github.com/AtomLinter/linter-stylelint/pull/322","id":208574925,"number":322,"title":"Grammars scopes to config + added support to styled-components","user":{"login":"mgtitimoli","id":4404683,"avatar_url":"https://avatars2.githubusercontent.com/u/4404683?v=4","gravatar_id":"","url":"https://api.github.com/users/mgtitimoli","html_url":"https://github.com/mgtitimoli","followers_url":"https://api.github.com/users/mgtitimoli/followers","following_url":"https://api.github.com/users/mgtitimoli/following{/other_user}","gists_url":"https://api.github.com/users/mgtitimoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mgtitimoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgtitimoli/subscriptions","organizations_url":"https://api.github.com/users/mgtitimoli/orgs","repos_url":"https://api.github.com/users/mgtitimoli/repos","events_url":"https://api.github.com/users/mgtitimoli/events{/privacy}","received_events_url":"https://api.github.com/users/mgtitimoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-02-17T22:28:16Z","updated_at":"2018-05-23T10:38:12Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/AtomLinter/linter-stylelint/pulls/322","html_url":"https://github.com/AtomLinter/linter-stylelint/pull/322","diff_url":"https://github.com/AtomLinter/linter-stylelint/pull/322.diff","patch_url":"https://github.com/AtomLinter/linter-stylelint/pull/322.patch"},"body":"Hi there!\r\n\r\nI've been using [Styled Components](https://github.com/styled-components/styled-components#linting) for a while, and recently we decided to add **stylelint** to our validation pipeline.\r\n\r\nIn addition to lint from the console, I wanted to get some feedback directly in Atom, and was then when I found this package.\r\n\r\nI installed the package, but to my surprise I was not getting any feedback, so after digging a while I noticed that this was caused because the grammar for Styled Components was not included in the currently supported ones.\r\n\r\nIn order to add a new grammar there were 2 paths to take:\r\n1. Add the new grammar directly to the [baseScopes array](https://github.com/AtomLinter/linter-stylelint/blob/master/lib/index.js#L27)\r\n2. Promote supported grammars to be a config value, so this way users would be able to specify the grammars they want to lint\r\n\r\nAfter analyzing the pros and cons I ended up picking the nice and marvelous path 2 :sparkles:.\r\n\r\nHope you like this :slightly_smiling_face:"},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/comments/391301825","html_url":"https://github.com/AtomLinter/linter-stylelint/pull/322#issuecomment-391301825","issue_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/322","id":391301825,"user":{"login":"Ky6uk","id":46930,"avatar_url":"https://avatars0.githubusercontent.com/u/46930?v=4","gravatar_id":"","url":"https://api.github.com/users/Ky6uk","html_url":"https://github.com/Ky6uk","followers_url":"https://api.github.com/users/Ky6uk/followers","following_url":"https://api.github.com/users/Ky6uk/following{/other_user}","gists_url":"https://api.github.com/users/Ky6uk/gists{/gist_id}","starred_url":"https://api.github.com/users/Ky6uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ky6uk/subscriptions","organizations_url":"https://api.github.com/users/Ky6uk/orgs","repos_url":"https://api.github.com/users/Ky6uk/repos","events_url":"https://api.github.com/users/Ky6uk/events{/privacy}","received_events_url":"https://api.github.com/users/Ky6uk/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T10:38:12Z","updated_at":"2018-05-23T10:38:12Z","author_association":"NONE","body":"I found there is no way to lint styled components through this linter yet. Isn't there?"}}
{"actor":{"display_login":"Ky6uk"}}