{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4089","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4089/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4089/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4089/events","html_url":"https://github.com/eslint/eslint/issues/4089","id":110522596,"number":4089,"title":"Consider to add `class` as an additional configuration in `space-before-blocks` rule","user":{"login":"almirfilho","id":532254,"avatar_url":"https://avatars.githubusercontent.com/u/532254?v=3","gravatar_id":"","url":"https://api.github.com/users/almirfilho","html_url":"https://github.com/almirfilho","followers_url":"https://api.github.com/users/almirfilho/followers","following_url":"https://api.github.com/users/almirfilho/following{/other_user}","gists_url":"https://api.github.com/users/almirfilho/gists{/gist_id}","starred_url":"https://api.github.com/users/almirfilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almirfilho/subscriptions","organizations_url":"https://api.github.com/users/almirfilho/orgs","repos_url":"https://api.github.com/users/almirfilho/repos","events_url":"https://api.github.com/users/almirfilho/events{/privacy}","received_events_url":"https://api.github.com/users/almirfilho/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":2,"created_at":"2015-10-08T19:14:48Z","updated_at":"2015-10-08T19:20:05Z","closed_at":null,"body":"What do you guys think about adding an additional config in `space-before-blocks` rule for ES6 classes?\r\nActually there are only two possible options: `functions` and `keywords`. However, it might be desirable to consider classes as a separated config as well. For instance, I might want my code to follow the rule as `{\"keywords\": false, \"functions\": false, \"classes\": true}`:\r\n\r\n```javascript\r\nclass Foo extends Bar {\r\n  someMethod(){\r\n    if(something){\r\n      // do something\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThank you!\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27269771-consider-to-add-class-as-an-additional-configuration-in-space-before-blocks-rule?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/146661283","html_url":"https://github.com/eslint/eslint/issues/4089#issuecomment-146661283","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4089","id":146661283,"user":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars.githubusercontent.com/u/5554486?v=3","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T19:20:05Z","updated_at":"2015-10-08T19:20:05Z","body":"Which version of eslint are you using?\r\nThis has already been added: https://github.com/eslint/eslint/pull/3066"}}