I had a similar issue, but in my case it was an .editorconfig file in my root folder with the following settings
insert_final_newline = true trim_trailing_whitespace = true