{"action":"closed","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1964","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1964/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1964/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1964/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/1964","id":115363326,"number":1964,"title":"The rule \"requireSpacesInsideObjectBrackets\" doesn't cover the case of `{}`","user":{"login":"justinmchase","id":10974,"avatar_url":"https://avatars.githubusercontent.com/u/10974?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmchase","html_url":"https://github.com/justinmchase","followers_url":"https://api.github.com/users/justinmchase/followers","following_url":"https://api.github.com/users/justinmchase/following{/other_user}","gists_url":"https://api.github.com/users/justinmchase/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmchase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmchase/subscriptions","organizations_url":"https://api.github.com/users/justinmchase/orgs","repos_url":"https://api.github.com/users/justinmchase/repos","events_url":"https://api.github.com/users/justinmchase/events{/privacy}","received_events_url":"https://api.github.com/users/justinmchase/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-05T20:07:07Z","updated_at":"2015-11-19T21:33:21Z","closed_at":"2015-11-19T21:33:21Z","body":"I have this set in my jscsrc file:\r\n```\r\n{\r\n  \"requireSpacesInsideObjectBrackets\": \"all\"\r\n}\r\n```\r\n\r\nYet this code doesn't produce any errors:\r\n```\r\nvar abc = {};\r\n```\r\n\r\nIf there are any keys in the object then it validates as expected but I would expect this to be invalid, and for the following to be valid:\r\n```\r\nvar abc = { };\r\n```\r\n\r\nIs this a bug or intentional?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28007008-the-rule-requirespacesinsideobjectbrackets-doesn-t-cover-the-case-of?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>"}}