Skip to content

Commit e17c797

Browse files
committed
Sync .editorconfig file from the "template"
We have created a standardized `.editorconfig` file that can be used in any Arduino Tooling project: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/general/.editorconfig
1 parent 2670f2a commit e17c797

File tree

1 file changed

+49
-5
lines changed

1 file changed

+49
-5
lines changed

.editorconfig

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,60 @@
1-
# http://editorconfig.org
2-
3-
root = true
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/general/.editorconfig
2+
# See: https://editorconfig.org/
3+
# The formatting style defined in this file is the official standardized style to be used in all Arduino Tooling
4+
# projects and should not be modified.
5+
# Note: indent style for each file type is defined even when it matches the universal config in order to make it clear
6+
# that this type has an official style.
47

58
[*]
69
charset = utf-8
10+
end_of_line = lf
11+
indent_size = 2
12+
indent_style = space
713
insert_final_newline = true
814
trim_trailing_whitespace = true
915

10-
[*.go]
16+
[*.{adoc,asc,asciidoc}]
17+
indent_size = 2
18+
indent_style = space
19+
20+
[*.{bash,sh}]
21+
indent_size = 2
22+
indent_style = space
23+
24+
[*.{c,cc,cp,cpp,cxx,h,hh,hpp,hxx,ii,inl,ino,ixx,pde,tpl,tpp,txx}]
25+
indent_size = 2
26+
indent_style = space
27+
28+
[*.{go,mod}]
1129
indent_style = tab
30+
31+
[*.java]
32+
indent_size = 2
33+
indent_style = space
34+
35+
[*.{js,jsx,json,jsonc,json5,ts,tsx}]
36+
indent_size = 2
37+
indent_style = space
38+
39+
[*.{md,mdx,mkdn,mdown,markdown}]
40+
indent_size = unset
41+
indent_style = space
42+
43+
[*.proto]
44+
indent_size = 2
45+
indent_style = space
46+
47+
[*.py]
1248
indent_size = 4
49+
indent_style = space
1350

14-
[*.{yml,yaml}]
51+
[*.svg]
52+
indent_size = 2
1553
indent_style = space
54+
55+
[*.{yaml,yml}]
1656
indent_size = 2
57+
indent_style = space
58+
59+
[.gitmodules]
60+
indent_style = tab

0 commit comments

Comments
 (0)