README
dot-editorconfig
creates a .editorconfig file in your package dir
Usage | Source | Contributing | License
Usage
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
Launching the command
npm install dot-editorconfig --save-dev
will create, in your package dir, an .editorconfig file with this content. Please note that installing dot-editorconfig will not override your .editorconfig file, if any. If you need to upgrade it is necessary to remove it manually before, for instance
rm .editorconfig
It is up to you to choose to gitignore or version and modify further your .editorconfig according to your needs.
Source
If you don't have npm you can just copy and paste the following source.
# EditorConfig is awesome: http://EditorConfig.org
# This file was created via command line
#
# npm install dot-editorconfig
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2
[*{.conf,.pl,.pm,.py}]
indent_size = 4
[*{.glsl,.go,.sh,.sql}]
indent_style = tab
[Makefile]
indent_style = tab
Contributing
If you also like the idea to have an easy way to install and share an .editorconfig file, and you think you can contribute adding something missing or improving current configuration, edit this README in the Source section and send a pull request. Do not edit the .editorconfig file, since it is generated by command
npm run markdown2code
License
OS icons provided by icons8.