nithir revised this gist . Go to revision
1 file changed, 2 deletions
.editorconfig
| @@ -1,5 +1,3 @@ | |||
| 1 | - | ||
| 2 | - | ||
| 3 | 1 | # EditorConfig is awesome: https://editorconfig.org | |
| 4 | 2 | ||
| 5 | 3 | # top-most EditorConfig file | |
nithir revised this gist . Go to revision
1 file changed, 40 insertions
.editorconfig(file created)
| @@ -0,0 +1,40 @@ | |||
| 1 | + | ||
| 2 | + | ||
| 3 | + | # EditorConfig is awesome: https://editorconfig.org | |
| 4 | + | ||
| 5 | + | # top-most EditorConfig file | |
| 6 | + | root = true | |
| 7 | + | ||
| 8 | + | # Unix-style newlines with a newline ending every file | |
| 9 | + | [*] | |
| 10 | + | end_of_line = lf | |
| 11 | + | insert_final_newline = true | |
| 12 | + | ||
| 13 | + | # Matches multiple files with brace expansion notation | |
| 14 | + | # Set default charset | |
| 15 | + | [*.{js,py}] | |
| 16 | + | charset = utf-8 | |
| 17 | + | ||
| 18 | + | # 4 space indentation | |
| 19 | + | [*.py] | |
| 20 | + | indent_style = space | |
| 21 | + | indent_size = 4 | |
| 22 | + | ||
| 23 | + | # Tab indentation (no size specified) | |
| 24 | + | [Makefile] | |
| 25 | + | indent_style = tab | |
| 26 | + | ||
| 27 | + | # Indentation override for all JS under lib directory | |
| 28 | + | [lib/**.js] | |
| 29 | + | indent_style = space | |
| 30 | + | indent_size = 2 | |
| 31 | + | ||
| 32 | + | [*.yml] | |
| 33 | + | indent_style = space | |
| 34 | + | indent_size = 2 | |
| 35 | + | ||
| 36 | + | # Matches the exact files either package.json or .travis.yml | |
| 37 | + | [{package.json,.travis.yml}] | |
| 38 | + | indent_style = space | |
| 39 | + | indent_size = 2 | |
| 40 | + | ||