EditorConfig is a widely-supported method to set project-wide defaults for editors:
https://editorconfig.org/
I have my text editor configured to use two-space tabs by default, so it's useful to
have an editor config file present with the project defaults, if the project uses another
tab size.
I don't think there are any particular downsides to including an editor config file,
but I can certainly understand if you'd rather not add more clutter to the repo.
EditorConfig is a widely-supported method to set project-wide defaults for editors: https://editorconfig.org/
I have my text editor configured to use two-space tabs by default, so it's useful to have an editor config file present with the project defaults, if the project uses another tab size.
I don't think there are any particular downsides to including an editor config file, but I can certainly understand if you'd rather not add more clutter to the repo.