Skip to content

Commit 1a92335

Browse files
silverwindtargos
authored andcommitted
tools: unify .editorconfig rules for 2-space
The `doc` directory had not had any editorconfig rules applied which can lead to tab indentation in editors. This unifies the rules to use 2-space as the default. Additionally, all rules are now sorted alphabetically. PR-URL: #23163 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 39e3ef7 commit 1a92335

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

.editorconfig

+8-22
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,26 @@
11
root = true
22

33
[*]
4-
end_of_line = lf
54
charset = utf-8
6-
trim_trailing_whitespace = true
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
78
insert_final_newline = true
9+
trim_trailing_whitespace = true
810

911
[vcbuild.bat]
1012
end_of_line = crlf
1113

12-
[{lib,test,tools}/**.js]
13-
indent_style = space
14-
indent_size = 2
15-
16-
[src/**.{h,cc}]
17-
indent_style = space
18-
indent_size = 2
19-
20-
[test/*.py]
21-
indent_style = space
22-
indent_size = 2
23-
24-
[configure]
25-
indent_style = space
26-
indent_size = 2
27-
2814
[Makefile]
29-
indent_style = tab
3015
indent_size = 8
16+
indent_style = tab
3117

3218
[{deps}/**]
33-
indent_style = ignore
34-
indent_size = ignore
19+
charset = ignore
3520
end_of_line = ignore
21+
indent_size = ignore
22+
indent_style = ignore
3623
trim_trailing_whitespace = ignore
37-
charset = ignore
3824

3925
[{test/fixtures,deps,tools/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
4026
insert_final_newline = false

0 commit comments

Comments
 (0)