{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4917","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4917/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4917/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4917/events","html_url":"https://github.com/eslint/eslint/issues/4917","id":125994318,"number":4917,"title":"Incorrect output for `no-multiple-empty-lines` on lines at EOF","user":{"login":"minustehbare","id":493868,"avatar_url":"https://avatars.githubusercontent.com/u/493868?v=3","gravatar_id":"","url":"https://api.github.com/users/minustehbare","html_url":"https://github.com/minustehbare","followers_url":"https://api.github.com/users/minustehbare/followers","following_url":"https://api.github.com/users/minustehbare/following{/other_user}","gists_url":"https://api.github.com/users/minustehbare/gists{/gist_id}","starred_url":"https://api.github.com/users/minustehbare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minustehbare/subscriptions","organizations_url":"https://api.github.com/users/minustehbare/orgs","repos_url":"https://api.github.com/users/minustehbare/repos","events_url":"https://api.github.com/users/minustehbare/events{/privacy}","received_events_url":"https://api.github.com/users/minustehbare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-11T17:21:45Z","updated_at":"2016-01-11T17:21:45Z","closed_at":null,"body":"**Version of ESLint**\r\nv1.10.3\r\n**What I did**\r\nAttempted to create a `.eslintrc` configuration to enforce *exactly one* empty line at EOF.  Here is the configuration:\r\n```javascript\r\n//.eslintrc\r\n{\r\n  \"rules\": {\r\n    \"no-multiple-empty-lines\": [2, { \"max\": 2, \"maxEOF\": 1 }],\r\n    \"eol-last\": 2\r\n  }\r\n}\r\n```\r\n\r\nI tested this on two separate files:\r\n```\r\n1 var a = 1;\r\n```\r\n\r\nand\r\n\r\n```\r\n1 var a = 1;\r\n2\r\n```\r\n\r\n**What I expected**\r\nAn error on the first file, no error on the second file.\r\n**What actually happened**\r\nThe first file produces no error.  The second file (with 2 lines, the last one being an empty line) throws this error:\r\n>3:2  error  Too many blank lines at the end of file. Max of 1 allowed  no-multiple-empty-lines\r\n\r\nThere are only 2 lines present in the file, yet `eslint` is reporting the error on a 3rd line.  `cat -e` on the file produces:\r\n\r\n```\r\nvar a = 1;$\r\n$\r\n```\r\n\r\nI found a similar issue, #4228, which was resolved with v1.8.0 though I am not sure how it might be related to this problem."}}