Everytime you can, you should add a new line at end of file.
I think you can follow this [gist](https://gist.github.com/tiste/6121928).