diff options
author | Rigel Kent <par@rigelk.eu> | 2018-03-29 11:07:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-29 11:07:51 +0200 |
commit | 09e10ac0c99c66049a9ba07da59067baadf5112e (patch) | |
tree | b59a94e4340442193c9c1faee2f635c51c8c9f8f /.editorconfig | |
parent | 490b595a01c5824ff63ffb87f0efdfca95f4bf3b (diff) | |
download | PeerTube-09e10ac0c99c66049a9ba07da59067baadf5112e.tar.gz PeerTube-09e10ac0c99c66049a9ba07da59067baadf5112e.tar.zst PeerTube-09e10ac0c99c66049a9ba07da59067baadf5112e.zip |
add .editorconfig to maintain consistent coding styles (#429)
Signed-off-by: Rigel Kent <sendmemail@rigelk.eu>
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..b7d3033f3 --- /dev/null +++ b/.editorconfig | |||
@@ -0,0 +1,21 @@ | |||
1 | ; This file is for unifying the coding style for different editors and IDEs. | ||
2 | ; More information at http://editorconfig.org to setup your IDE if need be. | ||
3 | |||
4 | root = true | ||
5 | |||
6 | [*] | ||
7 | end_of_line = lf | ||
8 | charset = utf-8 | ||
9 | |||
10 | [*.yml] | ||
11 | indent_style = space | ||
12 | indent_size = 2 | ||
13 | |||
14 | [{client,server,shared}/**.{ts,json,js}] | ||
15 | trim_trailing_whitespace = true | ||
16 | insert_final_newline = true | ||
17 | indent_style = space | ||
18 | indent_size = 2 | ||
19 | |||
20 | [*.md] | ||
21 | trim_trailing_whitespace = false | ||