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 27, 2024
1 parent 34f88c5 commit b0097d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig (https://editorconfig.org)

# Top-most EditorConfig file.
root = true

# Unix-style newlines in every file.
[*]
end_of_line = lf

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

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

0 comments on commit b0097d6

Please sign in to comment.