There is a stylelint rule to check for missing end of source newline, but css with two or more newline at the end are not reported to be reduce to one newline
See https://gerrit.wikimedia.org/r/#/c/348509/2/modules/skinOverride.css for an example file, where it was not reported