Fix: rewrite eol-last rule (fixes #1007) (fixes #1008)

related: #997, https://github.com/eslint/eslint/issues/1005#issuecomment-46745516