{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/2017","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/2017/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/2017/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/2017/events","html_url":"https://github.com/stylelint/stylelint/pull/2017","id":185715090,"number":2017,"title":"Add support for custom syntax/parsers","user":{"login":"kaicataldo","id":7041728,"avatar_url":"https://avatars.githubusercontent.com/u/7041728?v=3","gravatar_id":"","url":"https://api.github.com/users/kaicataldo","html_url":"https://github.com/kaicataldo","followers_url":"https://api.github.com/users/kaicataldo/followers","following_url":"https://api.github.com/users/kaicataldo/following{/other_user}","gists_url":"https://api.github.com/users/kaicataldo/gists{/gist_id}","starred_url":"https://api.github.com/users/kaicataldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaicataldo/subscriptions","organizations_url":"https://api.github.com/users/kaicataldo/orgs","repos_url":"https://api.github.com/users/kaicataldo/repos","events_url":"https://api.github.com/users/kaicataldo/events{/privacy}","received_events_url":"https://api.github.com/users/kaicataldo/received_events","type":"User","site_admin":false},"labels":[{"id":210042521,"url":"https://api.github.com/repos/stylelint/stylelint/labels/PR:%20review%20accepted","name":"PR: review accepted","color":"47B230","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2016-10-27T16:15:03Z","updated_at":"2016-11-19T15:21:03Z","closed_at":"2016-11-17T18:43:49Z","pull_request":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/2017","html_url":"https://github.com/stylelint/stylelint/pull/2017","diff_url":"https://github.com/stylelint/stylelint/pull/2017.diff","patch_url":"https://github.com/stylelint/stylelint/pull/2017.patch"},"body":"<!---\nPlease read the following. Pull requests that do not adhere to these guidelines will be closed.\n\nEach pull request must, with the exception of minor documentation fixes, be associated with an open issue. If a corresponding issue does not exist please stop. Instead, create an issue so we can discuss the change first.\n\nIf there is an associated open issue, then the next step is to make sure you've read the relevant developer guide:\n\n- Adding a rule: https://github.com/stylelint/stylelint/blob/master/docs/developer-guide/rules.md#write-the-rule\n\n- Adding an option: https://github.com/stylelint/stylelint/blob/master/docs/developer-guide/rules.md#adding-options-to-existing-rules\n\n- Fixing a bug: https://github.com/stylelint/stylelint/blob/master/docs/developer-guide/rules.md#fixing-bugs\n\nOnce you've done that, then please continue by answering these two questions:  -->\n\n> Which issue, if any, is this issue related to?\n#2002\n\n> Is there anything in the PR that needs further explanation?\n\nYes! This is a WIP PR that adds the ability to use custom syntax/parsers. I have a few questions:\n- **I ended up saving the output to a file and just manually searched through it. Is there a better way than that?** ~~This is my first time using tape, and I can't for the life of me figure out how to see exactly which tests are failing (there are currently 7 failures). I've tried different reporters, and none of them show me which file/test suite the failing tests are from. Am I doing something really wrong? Any info here would be appreciated. Once I get that figured out, I plan to add more tests as well.~~\n- As described [here](https://github.com/postcss/postcss#syntaxes), the `stringify` for syntaxes is optional:  \n\n> If there is not yet support for your favorite syntax, you can write a parser and/or stringifier to extend PostCSS\n\nHowever, in the case that `stringify` is missing (and therefore the `syntax` is only a `parse` function (example: [PostCSS's own `postcss-safe-parser`](https://github.com/postcss/postcss-safe-parser)), the option should be set as `parser` rather than `syntax`. Your thoughts on how this should be implemented? We can do a check like I've implemented in this PR, or could be more transparent and have the user specify a `parser` option that gets passed through to PostCSS.\n- This PR is rough still, but wanted to get feedback early and to see what you all think. It would be nice to be able to consolidate the checks for `syntax`. The challenge I'm facing right now is that the `configDir` doesn't always seem to be available once `getPostcssResult` has been called, and we don't have access to the file being linted when `augmentConfig` is being called (which we need to do the syntax set by file extension checking behavior). Would love to get some guidance on this from someone more knowledgeable about the project. \n\nThanks!\n"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/261719853","html_url":"https://github.com/stylelint/stylelint/pull/2017#issuecomment-261719853","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/2017","id":261719853,"user":{"login":"jeddy3","id":808227,"avatar_url":"https://avatars.githubusercontent.com/u/808227?v=3","gravatar_id":"","url":"https://api.github.com/users/jeddy3","html_url":"https://github.com/jeddy3","followers_url":"https://api.github.com/users/jeddy3/followers","following_url":"https://api.github.com/users/jeddy3/following{/other_user}","gists_url":"https://api.github.com/users/jeddy3/gists{/gist_id}","starred_url":"https://api.github.com/users/jeddy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeddy3/subscriptions","organizations_url":"https://api.github.com/users/jeddy3/orgs","repos_url":"https://api.github.com/users/jeddy3/repos","events_url":"https://api.github.com/users/jeddy3/events{/privacy}","received_events_url":"https://api.github.com/users/jeddy3/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T15:21:03Z","updated_at":"2016-11-19T15:21:03Z","body":"@kaicataldo Released as `7.6.0`. Thanks again for contributing :)"}}
{"actor":{"display_login":"jeddy3"}}