Skip to content

Commit ac584d9

Browse files
author
Pedro Pablo Bustamante Barrera
committed
chore: add .editorconfig file
1 parent fa40176 commit ac584d9

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.editorconfig

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# 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+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
charset = utf-8
14+
15+
[*.{js,jsx,json,scss,css,html}]
16+
indent_size = 2
17+
18+
[*.{js,jsx,json,scss,css,html,md}]
19+
indent_style = space
20+
21+
# Docstrings and comments use max_line_length = 79
22+
[*.py]
23+
indent_style = space
24+
indent_size = 4
25+
max_line_length = 79
26+
27+
[*.{md,markdown}]
28+
trim_trailing_whitespace = false
29+
30+
# Minified JavaScript files shouldn't be changed
31+
[**.min.{js,css}]
32+
indent_style = unset
33+
insert_final_newline = unset
34+
35+
# The JSON files contain newlines inconsistently
36+
[*.json]
37+
indent_size = 2
38+
insert_final_newline = unset
39+
40+
# Makefiles always use tabs for indentation
41+
[Makefile]
42+
indent_style = tab
43+
44+
# Batch files use tabs for indentation
45+
[*.bat]
46+
indent_style = tab
47+
48+
[*.yml]
49+
indent_size = 2
50+
51+
[*.{java,scala}]
52+
indent_style = space
53+
indent_size = 2
54+
max_line_length = 80

0 commit comments

Comments
 (0)