Skip to content

Commit

Permalink
tools: unify .editorconfig rules for 2-space
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
silverwind authored and targos committed Oct 3, 2018
1 parent 39e3ef7 commit 1a92335
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,40 +1,26 @@
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[vcbuild.bat]
end_of_line = crlf

[{lib,test,tools}/**.js]
indent_style = space
indent_size = 2

[src/**.{h,cc}]
indent_style = space
indent_size = 2

[test/*.py]
indent_style = space
indent_size = 2

[configure]
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 8
indent_style = tab

[{deps}/**]
indent_style = ignore
indent_size = ignore
charset = ignore
end_of_line = ignore
indent_size = ignore
indent_style = ignore
trim_trailing_whitespace = ignore
charset = ignore

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

0 comments on commit 1a92335

Please sign in to comment.