See https://editorconfig.org/
I disabled trimming trailing for markdown files as it can affect the output.