{"action":"closed","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3551","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3551/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3551/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3551/events","html_url":"https://github.com/eslint/eslint/issues/3551","id":103561975,"number":3551,"title":"key-spacing rule is \"reset\" after a nested object","user":{"login":"nub4life","id":2340066,"avatar_url":"https://avatars.githubusercontent.com/u/2340066?v=3","gravatar_id":"","url":"https://api.github.com/users/nub4life","html_url":"https://github.com/nub4life","followers_url":"https://api.github.com/users/nub4life/followers","following_url":"https://api.github.com/users/nub4life/following{/other_user}","gists_url":"https://api.github.com/users/nub4life/gists{/gist_id}","starred_url":"https://api.github.com/users/nub4life/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nub4life/subscriptions","organizations_url":"https://api.github.com/users/nub4life/orgs","repos_url":"https://api.github.com/users/nub4life/repos","events_url":"https://api.github.com/users/nub4life/events{/privacy}","received_events_url":"https://api.github.com/users/nub4life/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-27T17:56:42Z","updated_at":"2015-08-27T18:52:56Z","closed_at":"2015-08-27T18:52:55Z","body":"This is in my .eslintrc:\r\n\r\n```\r\n\"key-spacing\": [1, {\r\n    \"align\": \"colon\",\r\n    \"beforeColon\": true,\r\n    \"afterColon\": true\r\n}]\r\n```\r\n\r\nThis code snippet will cause a warning:\r\n```\r\nthis.state = {\r\n    var1111 : false,\r\n    var2       : true,\r\n    obj1       : {\r\n        bar1     : 0,\r\n        bar234 : 1\r\n    },\r\n    var3       : true\r\n};\r\n```\r\n```\r\n warning  Extra space after key \"var3\"            key-spacing\r\n```\r\n\r\nBut this doesn't:\r\n```\r\nthis.state = {\r\n    var1111 : false,\r\n    var2       : true,\r\n    obj1       : {\r\n        bar1   : 0,\r\n        bar234 : 1\r\n    },\r\n    var3 : true\r\n};\r\n```\r\n\r\nIt seems that the linter will \"reset\" the rule after evaluating a nested object. Is there a way to turn that off? It makes more sense to me if `var3` has the same alignment as `var2`. I could move the nested object to the end, but that doesn't solve the problem when I have more than one nested object."}}