Durss / Twitchat

Full featured Twitch chat alternative to fill gaps from the official one.
https://twitchat.fr
GNU General Public License v3.0
269 stars 30 forks source link

Add .editorconfig #66

Closed kuon closed 8 months ago

kuon commented 8 months ago

I started opening files in the project, and my editor is messing with the code automatically, especially it is triming trailing whitespace and ensuring newline at end of file, also it replaces tabs with spaces.

I suggest you add an .editorconfig file to the project to help with this.

I usually use trim_trailing_whitespace and insert_final_newline to both true, but you might set them to your liking, having the .editorconfig ensure editors of contributing developers will follow your style.

https://editorconfig.org/#supported-properties

Durss commented 8 months ago

Didn't know about this thank you 🙏 Added on main branch

kuon commented 8 months ago

I saw the file you added, good. Just as a side note, ensure you have an .editorconfig plugin enabled in your editor, to be sure your own editor is following it.

Cheers!

Durss commented 8 months ago

Yep I added it to generate the file :D