Skip to content

Commit

Permalink
Merge branch 'roman-editorconfig' into 'master'
Browse files Browse the repository at this point in the history
chore: add .editorconfig file

This change introduces repo-wide .editorconfig defaults. 

See merge request dfinity-lab/public/ic!13508
  • Loading branch information
roman-kashitsyn committed Jul 12, 2023
2 parents 5236dd2 + 9f507c4 commit e1907c9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties

root = true

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

# See https://doc.rust-lang.org/beta/style-guide/index.html#indentation-and-line-width
[*.rs]
indent_size = 4
max_line_length = 100

# See https://bazel.build/build/style-guide
[*.bazel]
indent_size = 4
quote_type = double

# See https://peps.python.org/pep-0008/
[*.py]
indent_size = 4

# See https://protobuf.dev/programming-guides/style/
[*.proto]
indent_size = 2
quote_type = double
max_line_length = 80

[Makefile]
indent_size = 8
indent_style = tab

[*.{json,yaml,yml}]
indent_style = space
indent_size = 2

0 comments on commit e1907c9

Please sign in to comment.