{"action":"created","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1308","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1308/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1308/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1308/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/1308","id":71583507,"number":1308,"title":"New Rules: (require|disallow)ObjectShorthand (ES6)","user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars.githubusercontent.com/u/588473?v=3","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/esnext","name":"esnext","color":"fbca04"},{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/new%20rule","name":"new rule","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-28T13:04:31Z","updated_at":"2015-04-28T23:22:40Z","closed_at":null,"body":"Also in https://github.com/airbnb/javascript/tree/es6#objects.\r\n\r\nI don't know if anyone would want disallowObjectShorthand but we can add that too.\r\n\r\n```js\r\n// require\r\nvar obj = {\r\n    a,\r\n    handler,\r\n    toString() {}\r\n};\r\n// disallow\r\nvar obj = {\r\n    a: a,\r\n    handler: handler,\r\n    toString: function() {}\r\n};\r\n```\r\n\r\nCan have options for methods, properties, or both.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12377622-new-rules-require-disallow-objectshorthand-es6?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/97261680","html_url":"https://github.com/jscs-dev/node-jscs/issues/1308#issuecomment-97261680","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1308","id":97261680,"user":{"login":"markelog","id":945528,"avatar_url":"https://avatars.githubusercontent.com/u/945528?v=3","gravatar_id":"","url":"https://api.github.com/users/markelog","html_url":"https://github.com/markelog","followers_url":"https://api.github.com/users/markelog/followers","following_url":"https://api.github.com/users/markelog/following{/other_user}","gists_url":"https://api.github.com/users/markelog/gists{/gist_id}","starred_url":"https://api.github.com/users/markelog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markelog/subscriptions","organizations_url":"https://api.github.com/users/markelog/orgs","repos_url":"https://api.github.com/users/markelog/repos","events_url":"https://api.github.com/users/markelog/events{/privacy}","received_events_url":"https://api.github.com/users/markelog/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T23:22:40Z","updated_at":"2015-04-28T23:22:40Z","body":"> any other rules are just potential styles\r\n\r\nbe careful, if people don't need it, no need to spend time on it"}}