{"action":"closed","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2786","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2786/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2786/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2786/events","html_url":"https://github.com/eslint/eslint/issues/2786","id":89162664,"number":2786,"title":"\"one-var\": { \"initialized\": \"never\" } does not prevent initialized var declarations from being joined with uninitialized var declarations","user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-18T00:35:04Z","updated_at":"2015-06-18T19:00:42Z","closed_at":"2015-06-18T19:00:42Z","body":"I expect to get an error when using this rule:\r\n\r\n```\r\n{\r\n  \"one-var\": [2, { \"initialized\": \"never\" }]\r\n}\r\n```\r\n\r\nand this code:\r\n\r\n```js\r\nvar i, j, digits = [0]\r\nconsole.log(i, j, digits)\r\n```\r\n\r\nSpecifically, I expect this error: `Split initialized 'var' declarations into multiple statements.`\r\n\r\nI do get an error if I do:\r\n\r\n```js\r\nvar digits = [0], digits2 = [0]\r\nconsole.log(digits, digits2)\r\n```\r\n\r\nI expect `\"one-var\": { \"initialized\": \"never\" }` to prevent initialized var declarations from being joined with any other var declarations (initialized or uninitialized)."}}