An old rule is to have a line at the end of the file. But I'm not sure I really care because some editors remove them. Even some configs of git can remove them automatically.