tl;dr: Please put an empty line at the end of each text/source file (if you want to be POSIX compliant).

Reason

This.

See also: here

How tools show it

git diff

Note: 4b825dc642cb6eb9a060e54bf8d69288fbee4904 is a hash for the empty tree of git (see here).

cat

git gui

Github

Gitlab

Sourcetree

VS Code setting

..to automatically at a newline, if missing:

ESLint rule