go-ike / ike

1 stars 1 forks source link

Use Editorconfig #1

Open mateusnroll opened 7 years ago

mateusnroll commented 7 years ago

Having a standard configuration for everyone working on a project is a must, and Editorconfig is an open source project to help with just that.

It's a file named .editorconfig at the project root, and it holds the basic configuration. The proposed configurations are:

root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Indent with tabs and sets the charset to utf-8
[*.{js, html, json, yml, yaml}]
charset = utf-8
indent_style = tab

Many editors are ready for this:

And others have plugins:

Hooray! 👍