This is a fairly well supported file-type configuration for indentation and trailing space stripping. See editorconfig.org for details.