{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4564","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4564/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4564/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4564/events","html_url":"https://github.com/eslint/eslint/issues/4564","id":119225816,"number":4564,"title":"Docs request: Diagrams for where whitespace rules can impact particular statements","user":{"login":"platinumazure","id":284282,"avatar_url":"https://avatars.githubusercontent.com/u/284282?v=3","gravatar_id":"","url":"https://api.github.com/users/platinumazure","html_url":"https://github.com/platinumazure","followers_url":"https://api.github.com/users/platinumazure/followers","following_url":"https://api.github.com/users/platinumazure/following{/other_user}","gists_url":"https://api.github.com/users/platinumazure/gists{/gist_id}","starred_url":"https://api.github.com/users/platinumazure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platinumazure/subscriptions","organizations_url":"https://api.github.com/users/platinumazure/orgs","repos_url":"https://api.github.com/users/platinumazure/repos","events_url":"https://api.github.com/users/platinumazure/events{/privacy}","received_events_url":"https://api.github.com/users/platinumazure/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-27T17:05:31Z","updated_at":"2015-12-01T15:02:43Z","closed_at":null,"body":"It could be pretty useful to have a diagram of various whitespace-related rules in the user guide and how they interact with each other. In addition, making this document could serve as a useful mental exercise for catching possible overlaps in these rules.\r\n\r\nExamples might look something like the below, only prettier:\r\n\r\n```js\r\n  .--------------- space-after-keywords\r\n  | .------------- space-in-parens\r\n  | | .----------- space-infix-ops\r\n  | | |   .------- space-infix-ops\r\n  | | |   | .----- space-in-parens\r\n  | | |   | | .--- space-before-blocks\r\n  v v v   v v v\r\nif ( x === 0 ) {\r\n}\r\n```\r\n\r\nBasically the idea is, take some common statement types and show how it would be possible to configure their appearance by referencing related whitespace rules.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28660665-docs-request-diagrams-for-where-whitespace-rules-can-impact-particular-statements?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/160992734","html_url":"https://github.com/eslint/eslint/issues/4564#issuecomment-160992734","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4564","id":160992734,"user":{"login":"platinumazure","id":284282,"avatar_url":"https://avatars.githubusercontent.com/u/284282?v=3","gravatar_id":"","url":"https://api.github.com/users/platinumazure","html_url":"https://github.com/platinumazure","followers_url":"https://api.github.com/users/platinumazure/followers","following_url":"https://api.github.com/users/platinumazure/following{/other_user}","gists_url":"https://api.github.com/users/platinumazure/gists{/gist_id}","starred_url":"https://api.github.com/users/platinumazure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platinumazure/subscriptions","organizations_url":"https://api.github.com/users/platinumazure/orgs","repos_url":"https://api.github.com/users/platinumazure/repos","events_url":"https://api.github.com/users/platinumazure/events{/privacy}","received_events_url":"https://api.github.com/users/platinumazure/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T15:02:43Z","updated_at":"2015-12-01T15:02:43Z","body":"@ilyavolodin Is it on GitHub? I would be happy to contribute if so."}}