Skip to content

Commit

Permalink
editorconfig: add initial config
Browse files Browse the repository at this point in the history
EditorConfig [1] defines a configuration file format to set basic
code style preferences. The preferences are picked up automatically
by many text editors by default.

[1]: https://editorconfig.org/
  • Loading branch information
emersion committed Jul 10, 2024
1 parent c390cb4 commit 7aaae8a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

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

[*.{tsx,ts,js,scss,json,toml,yml,yaml,nix}]
indent_size = 2

[*.{rs,kt,java,sql,py,sh}]
indent_size = 4

0 comments on commit 7aaae8a

Please sign in to comment.