{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4345","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4345/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4345/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4345/events","html_url":"https://github.com/eslint/eslint/issues/4345","id":115423763,"number":4345,"title":"`eslint-enable`/`eslint-disable` cause `lines-around-comment` rule to error","user":{"login":"mathieumg","id":1624812,"avatar_url":"https://avatars.githubusercontent.com/u/1624812?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieumg","html_url":"https://github.com/mathieumg","followers_url":"https://api.github.com/users/mathieumg/followers","following_url":"https://api.github.com/users/mathieumg/following{/other_user}","gists_url":"https://api.github.com/users/mathieumg/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieumg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieumg/subscriptions","organizations_url":"https://api.github.com/users/mathieumg/orgs","repos_url":"https://api.github.com/users/mathieumg/repos","events_url":"https://api.github.com/users/mathieumg/events{/privacy}","received_events_url":"https://api.github.com/users/mathieumg/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/breaking","name":"breaking","color":"e11d21"},{"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8"},{"url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-11-06T02:52:23Z","updated_at":"2016-04-27T16:30:52Z","closed_at":null,"body":"1. **The version of ESLint you are using**\r\n  \r\n  1.8.0\r\n\r\n2. **What you did (the source code and ESLint configuration)**\r\n\r\n  ```js\r\n  /* eslint-disable no-underscore-dangle */\r\n  this._values = values;\r\n  this._values2 = true;\r\n  /* eslint-enable no-underscore-dangle */\r\n  ```\r\n\r\n  with the following configuration:\r\n\r\n  ```js\r\n\"lines-around-comment\": [2, {\r\n      \"allowArrayStart\": true,\r\n      \"allowBlockStart\": true,\r\n      \"allowObjectStart\": true,\r\n      \"beforeBlockComment\": true,\r\n      \"beforeLineComment\": true\r\n    }],\r\n  ```\r\n  \r\n3. **The actual ESLint output complete with numbers**\r\n  \r\n  `error  Expected line before comment  lines-around-comment`\r\n\r\n4. **What you expected to happen instead**\r\n\r\n  No error. I don't think `lines-around-comment` should be enforced for `eslint-enable`/`eslint-disable` type comments. This follows with the fact that `no-inline-comments` ignores `eslint-disable-line` comments even when it's enabled.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28016388-eslint-enable-eslint-disable-cause-lines-around-comment-rule-to-error?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/215139868","html_url":"https://github.com/eslint/eslint/issues/4345#issuecomment-215139868","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4345","id":215139868,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T16:30:52Z","updated_at":"2016-04-27T16:30:52Z","body":"Well, this is the problem: either these comments are treated as comments or as empty spaces, either way there's going to be something \"wrong\". So we can either note make this change and accept that people will think these comments shouldn't count, or we leave them as-is and accept that people will think these comments should count. \r\n\r\nOr we add an option to every comment rule that lets people choose. "}}