Skip to content

Commit be33b65

Browse files
authored
Merge pull request #4 from gazzaar/editor-config
Add editor config to maintain consistent coding style
2 parents 9a30706 + 78993c0 commit be33b65

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.editorconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
root = true
2+
3+
# All files
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_style = space
8+
indent_size = 2
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
# Markdown (preserve trailing spaces for line breaks)
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
# YAML / JSON files
17+
[*.{yml,yaml,json}]
18+
indent_size = 2
19+
20+
# TypeScript, JavaScript, JSX, TSX
21+
[*.{js,jsx,ts,tsx}]
22+
quote_type = single
23+
indent_size = 2
24+
max_line_length = 100
25+
26+
# Dockerfile
27+
[Dockerfile]
28+
indent_style = space
29+
indent_size = 2
30+
31+
# Shell scripts
32+
[*.sh]
33+
indent_style = space
34+
indent_size = 2
35+
end_of_line = lf

0 commit comments

Comments
 (0)