Skip to content

Commit

Permalink
feat: add .editorconfig file
Browse files Browse the repository at this point in the history
Add a `.editorconfig` file at the top-level of the source tree to
maintain consistency for whitespace usage across various editors and
IDEs, e.g., VSCode, Notepad++, NeoVim, etc.

The current definitions match the existing code conventions of using
4-space tabs for indentation.
  • Loading branch information
johnnylam88 committed Sep 8, 2024
1 parent 627f615 commit e0209b5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# EditorConfig (https://editorconfig.org)

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Set default charset
[*.{lua,toc,xml}]
charset = utf-8

# 4 space indentation
[*.lua]
indent_style = space
indent_size = 4

0 comments on commit e0209b5

Please sign in to comment.