{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4266","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4266/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4266/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4266/events","html_url":"https://github.com/eslint/eslint/pull/4266","id":113440318,"number":4266,"title":"Update: Add `maxEOF` to no-multiple-empty-lines (fixes #4235)","user":{"login":"adrienverge","id":5244945,"avatar_url":"https://avatars.githubusercontent.com/u/5244945?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienverge","html_url":"https://github.com/adrienverge","followers_url":"https://api.github.com/users/adrienverge/followers","following_url":"https://api.github.com/users/adrienverge/following{/other_user}","gists_url":"https://api.github.com/users/adrienverge/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienverge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienverge/subscriptions","organizations_url":"https://api.github.com/users/adrienverge/orgs","repos_url":"https://api.github.com/users/adrienverge/repos","events_url":"https://api.github.com/users/adrienverge/events{/privacy}","received_events_url":"https://api.github.com/users/adrienverge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-26T20:08:46Z","updated_at":"2015-10-28T21:27:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/4266","html_url":"https://github.com/eslint/eslint/pull/4266","diff_url":"https://github.com/eslint/eslint/pull/4266.diff","patch_url":"https://github.com/eslint/eslint/pull/4266.patch"},"body":"Currently there is no way to specify a rule for having one (and only\r\none) ending newline. Using eol-last only checks if there is at least\r\none newline.\r\n\r\nThis patch adds an optional `maxEOF` option to no-multiple-empty-lines\r\nrule. When set, blank lines at the end are treated differently from\r\nlines within the file. When `maxEOF` is omitted, the rule's original\r\nbehaviour does not change.\r\n\r\nFor instance, requiring one and only one newline at the end of file can\r\nbe achieved using:\r\n\r\n    {\r\n        eol-last: 2,\r\n        no-multiple-empty-lines: [ 2, { max: 2, maxEOF: 1 } ]\r\n    }"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/151996819","html_url":"https://github.com/eslint/eslint/pull/4266#issuecomment-151996819","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4266","id":151996819,"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":"2015-10-28T21:27:25Z","updated_at":"2015-10-28T21:27:25Z","body":"Just one question. Also, can you please sign our CLA? http://eslint.org/cla"}}