diff options
author | VirtualTam <virtualtam@flibidi.net> | 2017-10-11 21:35:17 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2017-10-11 21:35:17 +0200 |
commit | e9619cc4f8717c1b8b66f60998cf8402bb983349 (patch) | |
tree | 1bfc15ca1d5740ab8ca66fe847c29adfc0966fa7 /.editorconfig | |
parent | 9f32160c323e77237e4051056c1f1061586cc12e (diff) | |
download | Shaarli-e9619cc4f8717c1b8b66f60998cf8402bb983349.tar.gz Shaarli-e9619cc4f8717c1b8b66f60998cf8402bb983349.tar.zst Shaarli-e9619cc4f8717c1b8b66f60998cf8402bb983349.zip |
Add EditorConfig configuration
EditorConfig allows specifying indentation, line feed and encoding
properties according to the type of file being edited.
Most editors support it out-of-the-box, or can benefit from it through a
plugin.
See:
- http://editorconfig.org/
- https://github.com/editorconfig/editorconfig
- https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..5abbd7bf --- /dev/null +++ b/.editorconfig | |||
@@ -0,0 +1,23 @@ | |||
1 | # EditorConfig: http://EditorConfig.org | ||
2 | |||
3 | root = true | ||
4 | |||
5 | [*] | ||
6 | charset = utf-8 | ||
7 | end_of_line = lf | ||
8 | insert_final_newline = true | ||
9 | trim_trailing_whitespace = true | ||
10 | indent_style = space | ||
11 | indent_size = 4 | ||
12 | |||
13 | [*.{html,xml}] | ||
14 | indent_size = 2 | ||
15 | |||
16 | [*.php] | ||
17 | max_line_length = 100 | ||
18 | |||
19 | [Dockerfile] | ||
20 | max_line_length = 80 | ||
21 | |||
22 | [Makefile] | ||
23 | indent_style = tab | ||